NSX-T Data Center REST API

Get NAT Rule

Get NAT Rule from the given Transit Gateway, under the given NAT section.
This API is only available when using VMware NSX.

Request:

Method:
GET
URI Path(s):
/policy/api/v1/orgs/{org-id}/projects/{project-id}/transit-gateways/{tgw-id}/nat/{nat-id}/nat-rules/{nat-rule-id}
Request Headers:
n/a
Query Parameters:
n/a
Request Body:
n/a

Example Request:

GET https://<policy-mgr>/policy/api/v1/orgs/default/projects/project1/transit-gateways/tgw1/nat/USER/nat-rules/MyNATRule3

Successful Response:

Response Code:
200 OK
Response Headers:
Content-type: application/json
Response Body:
TransitGatewayNatRule+

Example Response:

{ "resource_type": "TransitGatewayNatRule", "description": "Example of a NAT rule", "id": "MyNATRule3", "display_name": "MyNATRule3", "path": "/orgs/default/projects/project1/transit-gateways/tgw1/nat/USER/nat-rules/MyNATRule3", "parent_path": "/orgs/default/projects/project1/transit-gateways/tgw1/nat/USER/", "relative_path": "MyNATRule3", "sequence_number": 10, "action": "DNAT", "destination_network": "10.117.5.19", "translated_network": "192.168.1.1", "enabled" : true, "logging" : false, "_create_user": "admin", "_create_time": 1516084472276, "_last_modified_user": "admin", "_last_modified_time": 1516084472276, "_system_owned": false, "_protection": "NOT_PROTECTED", "_revision": 0 }

Required Permissions:

read

Feature:

policy_nat_rules

Additional Errors: