_epo.py 文件源码

python
阅读 23 收藏 0 点赞 0 评论 0

项目:opendxl-epo-service-python 作者: opendxl 项目源码 文件源码
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
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号