NSX-T Data Center REST API
Create or update a Nat Rule
If a NAT Rule is not already present in the transitgateway denoted by the TGW ID,
under the NAT section, create a new NAT Rule.
If it already exists, update the NAT Rule.
This API is only available when using VMware NSX.
Request:
Method:
PATCH
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:
TransitGatewayNatRule+
Example Request:
{ "sequence_number":3000, "action":"REFLEXIVE", "source_network":"192.168.2.10", "translated_network":"71.71.71.71", "firewall_match":"MATCH_INTERNAL_ADDRESS", "resource_type":"TransitGatewayNatRule", "id":"Match-internal", "display_name":"Match-internal" }Successful Response:
Response Code:
200 OK
Response Headers:
n/a
Response Body:
n/a