create_nat_rule
Creates a NAT rule (SNAT, DNAT, or REFLEXIVE) on a Tier-1 gateway to translate network addresses. Specify rule ID, gateway, action, and networks.
Instructions
[WRITE] Create a NAT rule on a Tier-1 gateway.
Args: tier1_id: The Tier-1 gateway ID. rule_id: Unique ID for the NAT rule. action: NAT action: "SNAT", "DNAT", or "REFLEXIVE" (default "DNAT"). source_network: Source network CIDR (required for SNAT). destination_network: Destination network CIDR (required for DNAT). translated_network: Translated network/IP address (required for SNAT, DNAT, and REFLEXIVE). target: Optional NSX Manager target name from config. Uses default if omitted.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | No | DNAT | |
| target | No | ||
| rule_id | Yes | ||
| tier1_id | Yes | ||
| source_network | No | ||
| translated_network | No | ||
| destination_network | No |