def __init__(self, host, port, username, password, verify):
"""
Initializes the epoRemote with the information for the target ePO instance
:param host: the hostname of the ePO to run remote commands on
:param port: the port of the desired ePO
:param username: the username to run the remote commands as
:param password: the password for the ePO user
:param verify: Whether to verify the ePO server's certificate
"""
logger.debug('Initializing epoRemote for ePO {} on port {} with user {}'.format(host, port, username))
self._baseurl = 'https://{}:{}/remote'.format(host, port)
self._auth = HTTPBasicAuth(username, password)
self._session = requests.Session()
self._verify = verify
评论列表
文章目录