VAppNetworkDescriptor_NatService

VAppNetworkDescriptor_NatService
VAppNetworkDescriptor_NatService

Represents a NAT network service.

JSON Example
{
    "externalIp": "1.2.3.4",
    "isEnabled": true,
    "natRules": [
        {
            "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
            }
        }
    ],
    "policy": "allowTraffic",
    "type": "ipTranslation"
}
string
externalIp
Optional

External IP address for rule.

boolean
isEnabled
Optional

Enable or disable the service using this flag.

natRules
Optional

List of NAT rules.

string
policy
Optional

One of: allowTraffic (Allow all traffic), allowTrafficIn (Allow inbound traffic only).

string
type
Optional

One of: ipTranslation (use IP translation), portForwarding (use port forwarding)