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

Update a specific NAT rule from a given logical router

Update a specific NAT rule from a given logical router.

Request:

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

Example Request:

PUT https://<nsx-mgr>/api/v1/logical-routers/1977d30c-eee2-11e4-874d-0050569c7004/nat/rules/1032 { "resource_type": "NatRule", "id": "1032", "display_name": "01003000-0000-0408-0000-000000000018", "action": "DNAT", "logging": false, "translated_ports": "21", "rule_priority": 1024, "translated_network": "172.16.10.10", "enabled": true, "match_destination_network": "80.80.80.1", "nat_pass": false, "_revision": 1 }

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, "translated_ports": "21", "rule_priority": 1024, "translated_network": "172.16.10.10", "enabled": true, "nat_pass": false, "match_destination_network": "80.80.80.1", "_last_modified_time": 1458853572023, "_create_time": 1458853243886, "_last_modified_user": "admin", "_system_owned": false, "_create_user": "admin", "_revision": 2 }

Required Permissions:

crud

Feature:

routing_nat

Additional Errors: