NSX-T Data Center REST API

Associated URIs:

API Description API Path

List TransitGateway NAT types.


List all NAT sections under the given TransitGateway
GET /policy/api/v1/orgs/{org-id}/projects/{project-id}/transit-gateways/{tgw-id}/nat

GET TransitGateway NAT types /section


Get either of the two supported sections (USER and NAT64) under the given
Transit Gateway.
The USER section allows IPV4 based NAT rules, while the NAT64 rules allow
translating IPV6 packets to IPV4 packets.
GET /policy/api/v1/orgs/{org-id}/projects/{project-id}/transit-gateways/{tgw-id}/nat/{nat-id}

List NAT Rules


List NAT Rules under the given Transit Gateway, under the given NAT section.
GET /policy/api/v1/orgs/{org-id}/projects/{project-id}/transit-gateways/{tgw-id}/nat/{nat-id}/nat-rules

Delete NAT Rule


Delete NAT Rule under the given Transit Gateway, under the given NAT section.
DELETE /policy/api/v1/orgs/{org-id}/projects/{project-id}/transit-gateways/{tgw-id}/nat/{nat-id}/nat-rules/{nat-rule-id}

Get NAT Rule


Get NAT Rule from the given Transit Gateway, under the given NAT section.
GET /policy/api/v1/orgs/{org-id}/projects/{project-id}/transit-gateways/{tgw-id}/nat/{nat-id}/nat-rules/{nat-rule-id}

Create or update a Nat Rule


If a NAT Rule is not already present in the transit
gateway denoted by the TGW ID,
under the NAT section, create a new NAT Rule.
If it already exists, update the NAT Rule.
PATCH /policy/api/v1/orgs/{org-id}/projects/{project-id}/transit-gateways/{tgw-id}/nat/{nat-id}/nat-rules/{nat-rule-id}

Update NAT Rule


Update NAT Rule on VPC denoted by Transit Gateway ID, under the given NAT section.
PUT /policy/api/v1/orgs/{org-id}/projects/{project-id}/transit-gateways/{tgw-id}/nat/{nat-id}/nat-rules/{nat-rule-id}

Get transit gateway NAT Rule Statistics


Get transit gateway NAT Rule Statistics from transit gateway denoted by transit-gateway-id,
under NAT section
denoted by <nat-id>.
Under transit gateway 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}/transit-gateways/{transit-gateway-id}/nat/{nat-id}/nat-rules/{nat-rule-id}/statistics

List NAT Rules Statistics


Get NAT Rule Statistics from Transit Gateway denoted by Transit Gateway ID.
GET /policy/api/v1/orgs/{org-id}/projects/{project-id}/transit-gateways/{transit-gateway-id}/nat/statistics
Additional Links