nsxnatrule
NAT rule
{
"vnic": "string",
"ruleType": "string",
"protocol": "string",
"description": "string",
"ruleId": 0,
"snatMatchDestinationPort": "string",
"originalAddress": "string",
"dnatMatchSourceAddress": "string",
"dnatMatchSourcePort": "string",
"snatMatchDestinationAddress": "string",
"originalPort": "string",
"loggingEnabled": false,
"translatedAddress": "string",
"enabled": false,
"icmpType": "string",
"translatedPort": "string",
"action": "string",
"ruleTag": 0
}
Interface on which the NAT rule is applied.
Identifies the type of the rule. internal_high or user.
Protocol. Default is 'any'
Description for the rule.
Identifier for the rule.
Apply SNAT rule only if traffic has this destination port. Default is 'any'.
Original address or address range. This is the original source address for SNAT rules and the original destination address for DNAT rules.
Apply DNAT rule only if traffic has this source address. Default is 'any'.
Apply DNAT rule only if traffic has this source port. Default is 'any'.
Apply SNAT rule only if traffic has this destination address. Default is 'any'.
Original port. This is the original source port for SNAT rules, and the original destination port for DNAT rules.
Enable logging for the rule.
Translated address or address range.
Enable rule.
ICMP type. Only supported when protocol is icmp. Default is 'any'.
Translated port. Supported in DNAT rules only.
Action for the rule. SNAT or DNAT.
Rule tag. Used to specify user-defined ruleId. If not specified NSX Manager will generate ruleId.