MappingMode
The MappingMode element specifies how IP address mapping is implemented by the NAT service. Table
shows permitted values for element content and the results they produce.
Table 9-5. MappingMode Element Values
Value
manual
automatic
PortForwardingRule
The PortForwardingRule element describes a NAT rule that maps an IP address and port in an organization
network to an external IP address and port.
Schema
Name
Min
ExternalIP
1
ExternalPort
1
InternalIP
1
InternalPort
1
Protocol
1
VmRule
The VmRule element describes a NAT rule that maps an IP address and port in a vApp network to an external
IP address and port. The external IP address, external port, and internal port are specified in the element. The
internal IP address is discovered by looking up the specified VmReference and VmNicId.
Schema
Name
ExternalIP
ExternalPort
VAppScopedVmId
VmNicId
InternalPort
Protocol
VMware, Inc.
Result
The external IP address is specified in the ExternalIP element
The external IP address is assigned automatically
Max
Type
1
IpAddressType
1
xs:int
1
IpAddressType
1
xs:int
1
Layer4ProtocolType
Min
Max
Type
0
1
IpAddressType
1
1
xs:int
1
1
xs:string
1
1
xs:int
1
1
xs:int
1
1
Layer4ProtocolType
Description
IP address to which this NAT rule maps the IP address
specified in the InternalIP element
Network port to which this NAT rule maps the port number
specified in the InternalPort element
IP address to which this NAT rule maps the IP address
specified in the ExternalIp element.
Network port to which this NAT rule maps the port number
specified in the ExternalPort element.
Specifies the network protocol to which this rule applies
Description
IP address to which this NAT rule maps the IP address
specified in the InternalIP element.
The network port to which this NAT rule maps the port
number specified in the InternalPort element.
Read‐only identifier created on import
The device number of the NIC on the referenced virtual
machine.
The network port to which this NAT rule maps the port
number specified in the ExternalPort element.
Specifies the network protocol to which this rule applies
Chapter 9 User API Reference
9‐5
159