ACL Resource¶
ACLResource¶
-
class
ACLResource
(id_unique, name, alias, comment, activate)¶ This class represents an ACL resource
- Parameters
id_unique (int) – ID of the ACL resource
name (str) – Name of the ACL resource
alias (str) – Alias of the ACL resource
comment (str) – Comment of the ACL resource
activate (bool) – Is the ACL resource enabled?
ACLResourceParam¶
-
class
ACLResourceParam
¶ This class represents the available parameter for a ACLResource
-
ACTIVATE
= 'activate'¶ Is the ACL resource enabled? (bool)
-
ALIAS
= 'alias'¶ Alias of the ACL resource (str)
-
NAME
= 'name'¶ Name of the ACL resource (str)
-
ACLResourceGrantAction¶
-
class
ACLResourceGrantAction
¶ This class represents the available grant actions in the format (command: str, Wildcard supported: bool)
-
ADDFILTER_HOSTCATEGORY
= ('addfilter_hostcategory', False)¶
-
ADDFILTER_INSTANCE
= ('addfilter_instance', False)¶
-
ADDFILTER_SERVICECATEGORY
= ('addfilter_servicecategory', False)¶
-
ADDHOSTEXCLUSION
= ('addhostexclusion', False)¶
-
GRANT_HOST
= ('grant_host', True)¶
-
GRANT_HOSTGROUP
= ('grant_hostgroup', True)¶
-
GRANT_METASERVICE
= ('grant_metaservice', False)¶
-
GRANT_SERVICEGROUP
= ('grant_servicegroup', True)¶
-
ACLResourceRevokeAction¶
-
class
ACLResourceRevokeAction
¶ This class represents the available revoke actions
-
DELFILTER_HOSTCATEGORY
= 'delfilter_hostcategory'¶
-
DELFILTER_INSTANCE
= 'delfilter_instance'¶
-
DELFILTER_SERVICECATEGORY
= 'delfilter_service_category'¶
-
DELHOSTEXCLUSION
= 'delhostexclusion'¶
-
REVOKE_HOST
= 'revoke_host'¶
-
REVOKE_HOSTGROUP
= 'revoke_hostgroup'¶
-
REVOKE_METASERVICE
= 'revoke_metaservice'¶
-
REVOKE_SERVICEGROUP
= 'revoke_servicegroup'¶
-