def __init__(self, hostname='app.deepsecurity.trendmicro.com', port='4119', tenant=None, username=None, password=None, prefix="", ignore_ssl_validation=False ): core.CoreApi.__init__(self) self._hostname = None self._port = port self._tenant = None self._username = None self._password = None self._prefix = prefix self.ignore_ssl_validation = ignore_ssl_validation self.hostname = hostname self._get_local_config_file() # allow for explicit override if tenant: self._tenant = unicode(tenant, "utf-8") if username: self._username = unicode(username, "utf-8") if password: self._password = unicode(password, "utf-8") self.computer_groups = computers.ComputerGroups(manager=self) self.computers = computers.Computers(manager=self) self.policies = policies.Policies(manager=self) self.rules = policies.Rules(manager=self) self.ip_lists = policies.IPLists(manager=self) self.cloud_accounts = environments.CloudAccounts(manager=self)
def __init__(self, hostname='app.deepsecurity.trendmicro.com', port='4119', tenant=None, username=None, password=None, prefix="", ignore_ssl_validation=False): core.CoreApi.__init__(self) self._hostname = None self._port = port self._tenant = unicode( tenant, "utf-8" ) if tenant else None # no harm in converting to ensure compatibility with non-latin tenant names self._username = unicode(username, "utf-8") if username else None self._password = unicode(password, "utf-8") if password else None self._prefix = prefix self.ignore_ssl_validation = ignore_ssl_validation self.hostname = hostname self.computer_groups = computers.ComputerGroups(manager=self) self.computers = computers.Computers(manager=self) self.policies = policies.Policies(manager=self) self.rules = policies.Rules(manager=self) self.ip_lists = policies.IPLists(manager=self) self.cloud_accounts = environments.CloudAccounts(manager=self)
def __init__(self, hostname='app.deepsecurity.trendmicro.com', port='4119', tenant=None, username=None, password=None, ignore_ssl_validation=False): core.CoreApi.__init__(self) self._hostname = None self._port = port self._tenant = tenant self._username = username self._password = password self.ignore_ssl_validation = ignore_ssl_validation self.hostname = hostname self.computer_groups = computers.ComputerGroups(manager=self) self.computers = computers.Computers(manager=self) self.policies = policies.Policies(manager=self) self.rules = policies.Rules(manager=self) self.ip_lists = policies.IPLists(manager=self) self.cloud_accounts = environments.CloudAccounts(manager=self)