NSX-T Data Center REST API

Associated URIs:

API Description API Path

List Policy NAT types.


List the two supported sections (USER and NAT64) under the given VPC ID.
The USER section allows IPV4 based NAT rules, while the NAT64 rules allow
translating IPV6 packets to IPV4 packets.
For more details related to NAT section please refer to PolicyNAT schema.
GET /policy/api/v1/orgs/{org-id}/projects/{project-id}/vpcs/{vpc-id}/nat

GET Policy NAT types.


Get either of the two supported sections (USER and NAT64) under the given VPC ID.
The USER section allows IPV4 based NAT rules, while the NAT64 rules allow
translating IPV6 packets to IPV4 packets.
For more details related to NAT section please refer to PolicyNAT schema.
GET /policy/api/v1/orgs/{org-id}/projects/{project-id}/vpcs/{vpc-id}/nat/{nat-id}

List NAT Rules


List NAT Rules from VPC denoted by VPC ID, under NAT section
denoted by <nat-id>.
Under VPC there will be 2 different NATs(sections).
(USER and NAT64)
For more details related to NAT section please refer to PolicyNAT schema.
GET /policy/api/v1/orgs/{org-id}/projects/{project-id}/vpcs/{vpc-id}/nat/{nat-id}/nat-rules

Delete NAT Rule


Delete NAT Rule from VPC denoted by VPC ID, under NAT section denoted by <nat-id>. Under VPC there will be 2 different NATs(sections). (USER and NAT64) For more details related to NAT section please refer to PolicyNAT schema.
DELETE /policy/api/v1/orgs/{org-id}/projects/{project-id}/vpcs/{vpc-id}/nat/{nat-id}/nat-rules/{nat-rule-id}

Get NAT Rule


Get NAT Rule from VPC denoted by VPC ID, under NAT section
denoted by <nat-id>.
Under VPC there will be 2 different NATs(sections).
(USER and NAT64)
For more details related to NAT section please refer to PolicyNAT schema.
GET /policy/api/v1/orgs/{org-id}/projects/{project-id}/vpcs/{vpc-id}/nat/{nat-id}/nat-rules/{nat-rule-id}

Create or update a Nat Rule


If a NAT Rule is not already present on VPC denoted by VPC ID,
under NAT section denoted by <nat-id>, create a new NAT Rule.
If it already exists, update the NAT Rule.
Under VPC there will be 2 different NATs(sections).
(USER and NAT64)
For more details related to NAT section please refer to PolicyNAT schema.
PATCH /policy/api/v1/orgs/{org-id}/projects/{project-id}/vpcs/{vpc-id}/nat/{nat-id}/nat-rules/{nat-rule-id}

Update NAT Rule


Update NAT Rule on VPC denoted by VPC ID, under NAT section
denoted by <nat-id>.
Under VPC there will be 2 different NATs(sections).
(USER and NAT64)
For more details related to NAT section please refer to PolicyNAT schema.
PUT /policy/api/v1/orgs/{org-id}/projects/{project-id}/vpcs/{vpc-id}/nat/{nat-id}/nat-rules/{nat-rule-id}

Get NAT Rule Statistics


Get NAT Rule Statistics from VPC denoted by VPC ID, under NAT section
denoted by <nat-id>.
Under VPC there will be 2 different NATs(sections).
(USER and NAT64)
For more details related to NAT section please refer to PolicyNAT schema.
GET /policy/api/v1/orgs/{org-id}/projects/{project-id}/vpcs/{vpc-id}/nat/{nat-id}/nat-rules/{nat-rule-id}/statistics

List NAT Rules Statistics


List NAT Rules Statistics from VPC denoted by VPC ID.
GET /policy/api/v1/orgs/{org-id}/projects/{project-id}/vpcs/{vpc-id}/nat/statistics