com.vmware.nsx_policy.infra.tier_1s package¶
Submodules¶
com.vmware.nsx_policy.infra.tier_1s.nat_client module¶
-
class
com.vmware.nsx_policy.infra.tier_1s.nat_client.
NatRules
(config)¶ Bases:
vmware.vapi.bindings.stub.VapiInterface
Parameters: config ( vmware.vapi.bindings.stub.StubConfiguration
) – Configuration to be used for creating the stub.-
delete
(tier1_id, nat_id, nat_rule_id)¶ Delete NAT Rule.
Parameters: - tier1_id (
str
) – Tier-1 ID (required) - nat_id (
str
) – NAT id (required) - nat_rule_id (
str
) – Rule ID (required)
Raise: com.vmware.vapi.std.errors_client.ServiceUnavailable
Service UnavailableRaise: com.vmware.vapi.std.errors_client.InvalidRequest
Bad Request, Precondition FailedRaise: com.vmware.vapi.std.errors_client.InternalServerError
Internal Server ErrorRaise: com.vmware.vapi.std.errors_client.Unauthorized
ForbiddenRaise: com.vmware.vapi.std.errors_client.NotFound
Not Found- tier1_id (
-
get
(tier1_id, nat_id, nat_rule_id)¶ Get NAT Rule.
Parameters: - tier1_id (
str
) – Tier-1 ID (required) - nat_id (
str
) – NAT id (required) - nat_rule_id (
str
) – Rule ID (required)
Return type: Returns: com.vmware.nsx_policy.model.PolicyNatRule
Raise: com.vmware.vapi.std.errors_client.ServiceUnavailable
Service UnavailableRaise: com.vmware.vapi.std.errors_client.InvalidRequest
Bad Request, Precondition FailedRaise: com.vmware.vapi.std.errors_client.InternalServerError
Internal Server ErrorRaise: com.vmware.vapi.std.errors_client.Unauthorized
ForbiddenRaise: com.vmware.vapi.std.errors_client.NotFound
Not Found- tier1_id (
-
list
(tier1_id, nat_id, cursor=None, included_fields=None, page_size=None, sort_ascending=None, sort_by=None)¶ List NAT Rules.
Parameters: - tier1_id (
str
) – Tier-1 ID (required) - nat_id (
str
) – NAT id (required) - cursor (
str
orNone
) – Opaque cursor to be used for getting next page of records (supplied by current result page) (optional) - included_fields (
str
orNone
) – Comma separated list of fields that should be included in query result (optional) - page_size (
long
orNone
) – Maximum number of results to return in this page (server may return fewer) (optional, default to 1000) - sort_ascending (
bool
orNone
) – (optional) - sort_by (
str
orNone
) – Field by which records are sorted (optional)
Return type: Returns: com.vmware.nsx_policy.model.PolicyNatRuleListResult
Raise: com.vmware.vapi.std.errors_client.ServiceUnavailable
Service UnavailableRaise: com.vmware.vapi.std.errors_client.InvalidRequest
Bad Request, Precondition FailedRaise: com.vmware.vapi.std.errors_client.InternalServerError
Internal Server ErrorRaise: com.vmware.vapi.std.errors_client.Unauthorized
ForbiddenRaise: com.vmware.vapi.std.errors_client.NotFound
Not Found- tier1_id (
-
patch
(tier1_id, nat_id, nat_rule_id, policy_nat_rule)¶ If a NAT Rule is not already present on Tier-1 denoted by Tier-1 ID, create a new NAT Rule. If it already exists, update the NAT Rule.
Parameters: - tier1_id (
str
) – Tier-1 ID (required) - nat_id (
str
) – NAT id (required) - nat_rule_id (
str
) – Rule ID (required) - policy_nat_rule (
com.vmware.nsx_policy.model_client.PolicyNatRule
) – (required)
Raise: com.vmware.vapi.std.errors_client.ServiceUnavailable
Service UnavailableRaise: com.vmware.vapi.std.errors_client.InvalidRequest
Bad Request, Precondition FailedRaise: com.vmware.vapi.std.errors_client.InternalServerError
Internal Server ErrorRaise: com.vmware.vapi.std.errors_client.Unauthorized
ForbiddenRaise: com.vmware.vapi.std.errors_client.NotFound
Not Found- tier1_id (
-
update
(tier1_id, nat_id, nat_rule_id, policy_nat_rule)¶ Update NAT Rule.
Parameters: - tier1_id (
str
) – Tier-1 ID (required) - nat_id (
str
) – NAT id (required) - nat_rule_id (
str
) – Rule ID (required) - policy_nat_rule (
com.vmware.nsx_policy.model_client.PolicyNatRule
) – (required)
Return type: Returns: com.vmware.nsx_policy.model.PolicyNatRule
Raise: com.vmware.vapi.std.errors_client.ServiceUnavailable
Service UnavailableRaise: com.vmware.vapi.std.errors_client.InvalidRequest
Bad Request, Precondition FailedRaise: com.vmware.vapi.std.errors_client.InternalServerError
Internal Server ErrorRaise: com.vmware.vapi.std.errors_client.Unauthorized
ForbiddenRaise: com.vmware.vapi.std.errors_client.NotFound
Not Found- tier1_id (
-
-
class
com.vmware.nsx_policy.infra.tier_1s.nat_client.
StubFactory
(stub_config)¶ Bases:
vmware.vapi.bindings.stub.StubFactoryBase
Initialize StubFactoryBase
Parameters: stub_config ( vmware.vapi.bindings.stub.StubConfiguration
) – Stub config instance
com.vmware.nsx_policy.infra.tier_1s.segments_client module¶
-
class
com.vmware.nsx_policy.infra.tier_1s.segments_client.
StaticArp
(config)¶ Bases:
vmware.vapi.bindings.stub.VapiInterface
Parameters: config ( vmware.vapi.bindings.stub.StubConfiguration
) – Configuration to be used for creating the stub.-
delete
(tier1_id, segment_id)¶ Delete static ARP config
Parameters: - tier1_id (
str
) – Tier-1 ID (required) - segment_id (
str
) – Segment ID (required)
Raise: com.vmware.vapi.std.errors_client.ServiceUnavailable
Service UnavailableRaise: com.vmware.vapi.std.errors_client.InvalidRequest
Bad Request, Precondition FailedRaise: com.vmware.vapi.std.errors_client.InternalServerError
Internal Server ErrorRaise: com.vmware.vapi.std.errors_client.Unauthorized
ForbiddenRaise: com.vmware.vapi.std.errors_client.NotFound
Not Found- tier1_id (
-
get
(tier1_id, segment_id)¶ Read static ARP config
Parameters: - tier1_id (
str
) – Tier-1 ID (required) - segment_id (
str
) – Segment ID (required)
Return type: Returns: com.vmware.nsx_policy.model.StaticARPConfig
Raise: com.vmware.vapi.std.errors_client.ServiceUnavailable
Service UnavailableRaise: com.vmware.vapi.std.errors_client.InvalidRequest
Bad Request, Precondition FailedRaise: com.vmware.vapi.std.errors_client.InternalServerError
Internal Server ErrorRaise: com.vmware.vapi.std.errors_client.Unauthorized
ForbiddenRaise: com.vmware.vapi.std.errors_client.NotFound
Not Found- tier1_id (
-
patch
(tier1_id, segment_id, static_arp_config)¶ Create static ARP config with tier-1 and segment IDs provided if it doesn’t exist, update with provided config if it’s already created.
Parameters: - tier1_id (
str
) – Tier-1 ID (required) - segment_id (
str
) – Segment ID (required) - static_arp_config (
com.vmware.nsx_policy.model_client.StaticARPConfig
) – (required)
Raise: com.vmware.vapi.std.errors_client.ServiceUnavailable
Service UnavailableRaise: com.vmware.vapi.std.errors_client.InvalidRequest
Bad Request, Precondition FailedRaise: com.vmware.vapi.std.errors_client.InternalServerError
Internal Server ErrorRaise: com.vmware.vapi.std.errors_client.Unauthorized
ForbiddenRaise: com.vmware.vapi.std.errors_client.NotFound
Not Found- tier1_id (
-
update
(tier1_id, segment_id, static_arp_config)¶ Create static ARP config with tier-1 and segment IDs provided if it doesn’t exist, update with provided config if it’s already created.
Parameters: - tier1_id (
str
) – Tier-1 ID (required) - segment_id (
str
) – Segment ID (required) - static_arp_config (
com.vmware.nsx_policy.model_client.StaticARPConfig
) – (required)
Return type: Returns: com.vmware.nsx_policy.model.StaticARPConfig
Raise: com.vmware.vapi.std.errors_client.ServiceUnavailable
Service UnavailableRaise: com.vmware.vapi.std.errors_client.InvalidRequest
Bad Request, Precondition FailedRaise: com.vmware.vapi.std.errors_client.InternalServerError
Internal Server ErrorRaise: com.vmware.vapi.std.errors_client.Unauthorized
ForbiddenRaise: com.vmware.vapi.std.errors_client.NotFound
Not Found- tier1_id (
-
-
class
com.vmware.nsx_policy.infra.tier_1s.segments_client.
StubFactory
(stub_config)¶ Bases:
vmware.vapi.bindings.stub.StubFactoryBase
Initialize StubFactoryBase
Parameters: stub_config ( vmware.vapi.bindings.stub.StubConfiguration
) – Stub config instance