NSX-T Data Center REST API

List TransitGateway NAT types.

List all NAT sections under the given TransitGateway
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
Request Headers:
n/a
Query Parameters:
TransitGatewayNatListRequestParameters+
Request Body:
n/a

Example Request:

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

Successful Response:

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

Example Response:

{ "sort_ascending": true, "sort_by": "display_name", "result_count": 2, "results": [ { "nat_type": "DEFAULT", "resource_type": "TransitGatewayNat", "id": "DEFAULT", "display_name": "DEFAULT", "path": "/orgs/default/projects/project1/transit-gateways/tgw1/nat/DEFAULT", "relative_path": "DEFAULT", "parent_path": "/orgs/default/projects/project1/transit-gateways/tgw1", "unique_id": "6c029b55-56aa-4f30-8dda-50745853c78f", "realization_id": "6c029b55-56aa-4f30-8dda-50745853c78f", "marked_for_delete": false, "overridden": false, "_system_owned": true, "_create_time": 1633385644756, "_create_user": "admin", "_last_modified_user": "admin", "_last_modified_time": 1633385644756, "_protection": "NOT_PROTECTED", "_revision": 0 }, { "nat_type": "INTERNAL", "resource_type": "TransitGatewayNat", "id": "INTERNAL", "display_name": "INTERNAL", "path": "/orgs/default/projects/project1/transit-gateways/tgw1/nat/INTERNAL", "relative_path": "INTERNAL", "parent_path": "/orgs/default/projects/project1/transit-gateways/tgw1", "unique_id": "2ede024b-2bbc-429c-b5de-dff7131a7900", "realization_id": "2ede024b-2bbc-429c-b5de-dff7131a7900", "marked_for_delete": false, "overridden": false, "_system_owned": true, "_create_time": 1633385644745, "_create_user": "admin", "_last_modified_user": "admin", "_last_modified_time": 1633385644745, "_protection": "NOT_PROTECTED", "_revision": 0 }] }

Required Permissions:

read

Feature:

policy_nat_rules

Additional Errors: