VAppNetworkDescriptor_NatRule

VAppNetworkDescriptor_NatRule
VAppNetworkDescriptor_NatRule

Represents a NAT rule.

JSON Example
{
    "description": "Some description.",
    "gatewayNatRule": {
        "icmpSubType": "any",
        "originalIp": "10.20.30.40",
        "originalPort": "\"80\"",
        "protocol": "TCP",
        "translatedIp": "11.22.33.44",
        "translatedPort": "\"88\""
    },
    "id": 1,
    "isEnabled": true,
    "oneToOneBasicRule": {
        "externalIpAddress": "any",
        "internalIpAddress": "any",
        "mappingMode": "automatic"
    },
    "oneToOneVmRule": {
        "externalIpAddress": "10.71.80.255",
        "mappingMode": "automatic",
        "vmName": "myvm",
        "vmNicId": 0
    },
    "portForwardingRule": {
        "externalIpAddress": "10.71.80.255",
        "externalPort": 80,
        "internalIpAddress": "10.20.30.40",
        "internalPort": 88,
        "protocol": "TCP"
    },
    "type": "SNAT",
    "vmRule": {
        "externalIpAddress": "10.71.80.255",
        "externalPort": 80,
        "internalPort": 88,
        "protocol": "TCP",
        "vmName": "myvm",
        "vmNicId": 0
    }
}
string
description
Optional

Description of NAT rule.

gatewayNatRule
Optional

gatewayNatRule

integer As int32 As int32
id
Optional

ID of the rule. Can be used to track syslog messages.

boolean
isEnabled
Optional

Used to enabled or disable NAT rule.

oneToOneBasicRule
Optional

oneToOneBasicRule

oneToOneVmRule
Optional

oneToOneVmRule

portForwardingRule
Optional

portForwardingRule

string
type
Optional

Type of NAT rule. One of: SNAT (source NAT), DNAT (destination NAT)

vmRule
Optional

vmRule