VMware Cloud Director API - NatVmRuleType

VMware Cloud Director API - NatVmRuleType

NatVmRuleType

Type:
NatVmRuleType
Namespace:
http://www.vmware.com/vcloud/v1.5
Description:
Represents the NAT rule for port forwarding between VM NIC/port and external IP/port.
Since:
0.9
Schema:
network.xsd
Media type(s):
None
Extends:
VCloudExtensibleType
XML Representation:
<NatVmRuleType xmlns="http://www.vmware.com/vcloud/v1.5">
    <ExternalIpAddress> IpAddressType </ExternalIpAddress>
    <ExternalPort> xs:int </ExternalPort>
    <VAppScopedVmId> xs:string </VAppScopedVmId>
    <VmNicId> xs:int </VmNicId>
    <InternalPort> xs:int </InternalPort>
    <Protocol> xs:string </Protocol>
</NatVmRuleType>

Elements

Element Type Required Modifiable Since Deprecated Description
ExternalIpAddress IpAddressType No always 0.9 External IP address to forward to.
ExternalPort int Yes always 0.9 External port to forward to.
InternalPort int Yes always 0.9 Internal port to forward.
Protocol string Yes always 1.0 Protocol to forward. One of: TCP (forward TCP packets), UDP (forward UDP packets), TCP_UDP (forward TCP and UDP packets).
VAppScopedVmId string Yes always 1.0 VAppScopedVmId of VM to which this rule applies.
VCloudExtension VCloudExtensionType No always 0.9 An optional extension element that can contain an arbitrary number of elements and attributes. Not related to extension services.
VmNicId int Yes always 0.9 VM NIC ID to which this rule applies.