Management Plane API > Networking > Logical Routing And Services > NAT

Get a specific NAT rule from a given logical router

Get a specific NAT rule from a given logical router

Request:

Method:
GET
URI Path(s):
/api/v1/logical-routers/<logical-router-id>/nat/rules/<rule-id>
Request Headers:
n/a
Query Parameters:
n/a
Request Body:
n/a

Example Request:

GET https://<nsx-mgr>/api/v1/logical-routers/1977d30c-eee2-11e4-874d-0050569c7004/nat/rules/1032

Successful Response:

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

Example Response:

{ "resource_type": "NatRule", "id": "1032", "display_name": "01003000-0000-0408-0000-000000000018", "action": "DNAT", "logging": false, "rule_priority": 1024, "translated_network": "172.16.10.10", "enabled": true, "nat_pass": true, "match_destination_network": "80.80.80.1", "_last_modified_time": 1458853243886, "_create_time": 1458853243886, "_last_modified_user": "admin", "_system_owned": false, "_create_user": "admin", "_revision": 0 }

Required Permissions:

read

Feature:

routing_nat

Additional Errors: