com.vmware.nsx_policy.global_infra.tier_0s.nat package

Submodules

com.vmware.nsx_policy.global_infra.tier_0s.nat.nat_rules_client module

class com.vmware.nsx_policy.global_infra.tier_0s.nat.nat_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(tier0_id, nat_id, nat_rule_id, enforcement_point_path=None)

Get NAT Rule Statistics from Tier-0 denoted by Tier-0 ID, under NAT section denoted by <nat-id>. Under tier-0 there will be 3 different NATs(sections). (INTERNAL, USER and DEFAULT) For more details related to NAT section please refer to PolicyNAT schema.

Parameters:
  • tier0_id (str) – Tier-0 ID (required)
  • nat_id (str) – NAT id (required)
  • nat_rule_id (str) – Rule ID (required)
  • enforcement_point_path (str or None) – String Path of the enforcement point (optional)
Return type:

com.vmware.nsx_policy.model_client.PolicyNatRuleStatisticsListResult

Returns:

com.vmware.nsx_policy.model.PolicyNatRuleStatisticsListResult

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.global_infra.tier_0s.nat.nat_rules_client.StubFactory(stub_config)

Bases: vmware.vapi.bindings.stub.StubFactoryBase

Initialize StubFactoryBase

Parameters:stub_config (vmware.vapi.bindings.stub.StubConfiguration) – Stub config instance