delete_nat_rule
Permanently delete a NAT rule from a Tier-1 gateway to stop traffic translation immediately. Use after confirming rule details with list_nat_rules.
Instructions
[WRITE] Permanently delete a NAT rule from a Tier-1 gateway's USER NAT section.
Irreversible: traffic matched by the rule stops being translated immediately, which can break inbound (DNAT) or outbound (SNAT) connectivity. Run list_nat_rules on the same tier1_id first to confirm the rule_id and review its action and networks, and confirm with the user before deleting. Returns a confirmation string on success, or an "Error: ..." string (rule or gateway not found, connectivity failure). Recorded in the audit log (~/.vmware/audit.db).
Args: tier1_id: Tier-1 gateway that owns the rule, as returned by list_tier1_gateways. rule_id: NAT rule ID to delete, as returned by list_nat_rules. target: NSX Manager name from config.yaml. Uses the default target if omitted.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| target | No | ||
| rule_id | Yes | ||
| tier1_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |