NSX-T Data Center REST API
List NAT Rules
List NAT Rules from Tier-1 denoted by Tier-1 ID, under NAT sectiondenoted by <nat-id>.
Under tier-1 there will be 3 different NATs(sections).
(INTERNAL, USER and DEFAULT)
For more details related to NAT section please refer to PolicyNAT schema.
Note:
IPSecVpnSession as Scope: Please note that old IPSecVpnSession policy path deprecated. If user specifiy old IPSecVpnSession path in the
scope property in the PATCH/PUT PoliycNatRule API, the path returned in the GET response payload will be a new path instead of the deprecated IPSecVpnSession path
Both old and new IPSecVpnSession path refer to same resource. there is no functional impact.
Request:
Method:
GET
URI Path(s):
/policy/api/v1/infra/tier-1s/{tier-1-id}/nat/{nat-id}/nat-rules
/policy/api/v1/global-infra/tier-1s/{tier-1-id}/nat/{nat-id}/nat-rules
/policy/api/v1/orgs/{org-id}/projects/{project-id}/infra/tier-1s/{tier-1-id}/nat/{nat-id}/nat-rules
/policy/api/v1/global-infra/tier-1s/{tier-1-id}/nat/{nat-id}/nat-rules
/policy/api/v1/orgs/{org-id}/projects/{project-id}/infra/tier-1s/{tier-1-id}/nat/{nat-id}/nat-rules
Request Headers:
n/a
Query Parameters:
PolicyNatRuleListRequestParameters+
Request Body:
n/a
Example Request:
GET https://<policy-mgr>/policy/api/v1/infra/tier-1s/vmc_network-demo/nat/USER/nat-rulesSuccessful Response:
Response Code:
200 OK
Response Headers:
Content-type: application/json
Response Body:
PolicyNatRuleListResult+