VMware, Inc. 159
Chapter 9 User API Reference
MappingMode
TheMappingModeelementspecifieshowIPaddressmappingisimplementedbytheNATservice.Table 9‐5
showspermittedvaluesforelementcontentandtheresultstheyproduce.
PortForwardingRule
ThePortForwardingRuleelementdescribesaNATrulethatmapsanIPaddressandportinanorganization
networktoanexternalIPaddressandport.
VmRule
TheVmRuleelementdescribesaNATrulethatmapsanIPaddressandportinavAppnetworktoanexternal
IPaddressandport.TheexternalIPaddress,externalport,andinternalportarespecifiedintheelement.The
internalIPaddressisdiscoveredbylookingupthespecifiedVmReference
andVmNicId.
Table 9-5. MappingMode Element Values
Value Result
manual TheexternalIPaddressisspecifiedintheExternalIPelement
automatic TheexternalIPaddressisassignedautomatically
Schema
Name Min Max Type Description
ExternalIP 1 1 IpAddressType IPaddresstowhichthisNATrulemapstheIPaddress
specifiedintheInternalIPelement
ExternalPort 1 1 xs:int NetworkporttowhichthisNATrulemapstheportnumber
specifiedintheInternalPortelement
InternalIP 1 1 IpAddressType IPaddresstowhichthisNATrulemapstheIPaddress
specifiedintheExternalIpelement.
InternalPort 1 1 xs:int Networkport
towhichthisNATrulemapstheportnumber
specifiedintheExternalPortelement.
Protocol 1 1 Layer4ProtocolType Specifiesthenetworkprotocoltowhichthisruleapplies
Schema
Name Min Max Type Description
ExternalIP 0 1 IpAddressType IPaddresstowhichthisNATrulemapstheIPaddress
specifiedintheInternalIPelement.
ExternalPort 1 1 xs:int ThenetworkporttowhichthisNATrulemapstheport
numberspecifiedintheInternalPortelement.
VAppScopedVmId 1 1 xs:string Read‐onlyidentifiercreatedonimport
VmNicId 1 1 xs:int ThedevicenumberoftheNIConthereferencedvirtual
machine.
InternalPort 1 1 xs:int The
networkporttowhichthisNATrulemapstheport
numberspecifiedintheExternalPortelement.
Protocol 1 1 Layer4ProtocolType Specifiesthenetworkprotocoltowhichthisruleapplies