def _import_api():
    '''
    Download https://<url>/pve-docs/api-viewer/apidoc.js
    Extract content of pveapi var (json formated)
    Load this json content into global variable "api"
    '''
    global api
    full_url = 'https://{0}:{1}/pve-docs/api-viewer/apidoc.js'.format(url, port)
    returned_data = requests.get(full_url, verify=verify_ssl)

    re_filter = re.compile('(?<=pveapi =)(.*)(?=^;)', re.DOTALL | re.MULTILINE)
    api_json = re_filter.findall(returned_data.text)[0]
    api = salt.utils.json.loads(api_json)
Download https://<url>/pve-docs/api-viewer/apidoc.js
    Extract content of pveapi var (json formated)
    Load this json content into global variable "api"