com.vmware.nsx_policy.infra.domains.security_policies package¶
Submodules¶
com.vmware.nsx_policy.infra.domains.security_policies.rules_client module¶
-
class
com.vmware.nsx_policy.infra.domains.security_policies.rules_client.
Statistics
(config)¶ Bases:
vmware.vapi.bindings.stub.VapiInterface
- Parameters
config (
vmware.vapi.bindings.stub.StubConfiguration
) – Configuration to be used for creating the stub.
-
list
(domain_id, security_policy_id, rule_id, enforcement_point_path=None)¶ Get statistics of a rule. - no enforcement point path specified: Stats will be evaluated on each enforcement point. - {enforcement_point_path}: Stats are evaluated only on the given enforcement point.
- Parameters
domain_id (
str
) – Domain id (required)security_policy_id (
str
) – Security policy id (required)rule_id (
str
) – Rule id (required)enforcement_point_path (
str
orNone
) – String Path of the enforcement point (optional)
- Return type
- Returns
com.vmware.nsx_policy.model.RuleStatisticsListResult
- Raise
com.vmware.vapi.std.errors_client.ServiceUnavailable
Service Unavailable- Raise
com.vmware.vapi.std.errors_client.InvalidRequest
Bad Request, Precondition Failed- Raise
com.vmware.vapi.std.errors_client.InternalServerError
Internal Server Error- Raise
com.vmware.vapi.std.errors_client.Unauthorized
Forbidden- Raise
com.vmware.vapi.std.errors_client.NotFound
Not Found
-
class
com.vmware.nsx_policy.infra.domains.security_policies.rules_client.
StubFactory
(stub_config)¶ Bases:
vmware.vapi.bindings.stub.StubFactoryBase
Initialize StubFactoryBase
- Parameters
stub_config (
vmware.vapi.bindings.stub.StubConfiguration
) – Stub config instance