vCloud API Programming Guide
158 VMware, Inc.
NatType
TheNatTypeelementspecifieshownetworkaddresstranslationisimplementedbytheNATservice.Table 9‐3
showspermittedvaluesforelementcontentandtheresultstheyproduce.
Policy
ThePolicyelementofaNatServiceelementspecifieshowpacketsarehandledbytheNATservice.Table 9‐4
showspermittedvaluesforelementcontentandtheresultstheyproduce.
NatRule
TheNatRuleelementspecifiesasinglenetworkaddresstranslationrule.
OneToOneVmRule
TheOneToOneVmRuleelementdescribesaNATrulethatspecifiesnetworkaddresstranslationdetailsfora
singlevirtualmachine.TheexternalIPaddresscanbespecifiedmanuallyorassignedautomaticallyat
deploymenttime.TheinternalIPaddressisdiscoveredbylookingupthespecifiedVmReferenceandNICID.
Table 9-3. NatType Element Values
Value Result
ipTranslation NATserviceimplementedbyIPaddresstranslation
portForwarding NATserviceimplementedbynetworkportforwarding
Table 9-4. NatService Policy Element Values
Value Result
allowTraffic Packetsofthistypepassthroughthefirewallinbothdirections
allowTrafficIn Onlyinboundpacketsofthistypepassthroughthefirewall
Schema
Name Min Max Type Description
Description 0 1 xs:string Optionaldescriptionoftherule
OneToOneBasicRule 0 1 NatOneToOneBasicRuleTy pe Ignoredinthisrelease
OneToOneVmRule 0 1 NatOneToOneVmRuleType Specifiesnetworkaddresstranslationdetailsfor
asinglevirtualmachine
PortForwardingRule 0 1 NatPortForwardingRuleType MapsanIPaddressandportinanorganization
networktoanexternalIPaddressandport
VmRule 01 NatVmRuleType MapsanIPaddressandportinavAppnetwork
toanexternalIPaddress
andport
Schema
Name Min Max Type Description
MappingMode 1 1 NatMappingModeType SpecifieshowIPaddressmappingisimplementedby
theNATservice
ExternalIP 0 1 IpAddressType IfMappingModeismanual,specifiestheexternalIP
addressofthisVm
VAppScopedVmId 1 1 xs:string Read‐onlyidentifiercreatedonimport
VmNicId 1 1 xs:int DevicenumberoftheNIConthereferencedvirtual
machine