def get_hbs_order_info(self, locale=None): """Get Order Information that tied to tenant id. :param string locale: Messages are displayed in Japanese or English depending on this value. ja: Japanese, en: English. Default value is "en". :return: Host Based Security. :rtype: :class:`~ecl.security.v2.host_based_security.HostBasedSecurity` """ hbs = _hbs.HostBasedSecurity() return hbs.get_order_info(self.session, locale=locale)
def get_hbs_order_status(self, soid, locale=None): """Check progress status of Host-based Security Service Order. :param string soid: This value is returned value of when you execute API of Order Host-based Security, Change menu or quantity, or Cancel the order. :param string locale: Messages are displayed in Japanese or English depending on this value. ja: Japanese, en: English. Default value is "en". :return: Host Based Security. :rtype: :class:`~ecl.security.v2.host_based_security.HostBasedSecurity` """ hbs = _hbs.HostBasedSecurity() return hbs.get_order_status(self.session, soid, locale=locale)
def cancel_hbs(self, mailaddress, locale=None): """Cancel the order of Host-based Security. :param string mailaddress: Contactable mail address. :param string locale: Messages are displayed in Japanese or English depending on this value. ja: Japanese, en: English. Default value is "en". :return: Host Based Security. :rtype: :class:`~ecl.security.v2.host_based_security.HostBasedSecurity` """ body = {} body["tenant_id"] = self.session.get_project_id() body["mailaddress"] = mailaddress body["sokind"] = "C" if locale: body["locale"] = locale hbs = _hbs.HostBasedSecurity() return hbs.delete(self.session, body, locale=locale)
def change_hbs_quantity(self, max_agent_value, mailaddress, locale=None): """Change maximum quantity of Agent usage. :param string max_agent_value: Set maximum quantity of Agenet usage. :param string mailaddress: Contactable mail address. :param string locale: Messages are displayed in Japanese or English depending on this value. ja: Japanese, en: English. Default value is "en". :return: Host Based Security. :rtype: :class:`~ecl.security.v2.host_based_security.HostBasedSecurity` """ body = {} body["tenant_id"] = self.session.get_project_id() body["max_agent_value"] = max_agent_value body["mailaddress"] = mailaddress body["sokind"] = "M2" if locale: body.update({"locale": locale}) hbs = _hbs.HostBasedSecurity() return hbs.update(self.session, **body)
def change_hbs_menu(self, service_order_service, mailaddress, locale=None): """Change menu of Host-based Security. :param string service_order_service: Requested menu. Set "Managed Anti-Virus", "Managed Virtual Patch" or "Managed Host-based Security Package" to this field. :param string mailaddress: Contactable mail address. :param string locale: Messages are displayed in Japanese or English depending on this value. ja: Japanese, en: English. Default value is "en". :return: Host Based Security. :rtype: :class:`~ecl.security.v2.host_based_security.HostBasedSecurity` """ body = {} body["tenant_id"] = self.session.get_project_id() body["service_order_service"] = service_order_service body["mailaddress"] = mailaddress body["sokind"] = "M1" if locale: body.update({"locale": locale}) hbs = _hbs.HostBasedSecurity() return hbs.update(self.session, **body)