VMware Cloud Director API - NatService

VMware Cloud Director API - NatService

NatServiceType

Element:
NatService
Type:
NatServiceType
Namespace:
http://www.vmware.com/vcloud/v1.5
Description:
Represents a NAT network service.
Since:
Schema:
network.xsd
Media type(s):
None
Extends:
NetworkServiceType
XML Representation:
<NatService xmlns="http://www.vmware.com/vcloud/v1.5">
    <IsEnabled> xs:boolean </IsEnabled>
    <NatType> xs:string </NatType>
    <Policy> xs:string </Policy>
    <NatRule>
        <Description> xs:string </Description>
        <RuleType> xs:string </RuleType>
        <IsEnabled> xs:boolean </IsEnabled>
        <Id> xs:int </Id>
        <GatewayNatRule>
            <Interface href="xs:anyURI" id="xs:string" type="xs:string" name="xs:string"/>
            <OriginalIp> IpAddressType </OriginalIp>
            <OriginalPort> xs:string </OriginalPort>
            <TranslatedIp> IpAddressType </TranslatedIp>
            <TranslatedPort> xs:string </TranslatedPort>
            <Protocol> xs:string </Protocol>
            <IcmpSubType> xs:string </IcmpSubType>
        </GatewayNatRule>
        <OneToOneBasicRule>
            <MappingMode> xs:string </MappingMode>
            <ExternalIpAddress> IpAddressType </ExternalIpAddress>
            <InternalIpAddress> IpAddressType </InternalIpAddress>
        </OneToOneBasicRule>
        <OneToOneVmRule>
            <MappingMode> xs:string </MappingMode>
            <ExternalIpAddress> IpAddressType </ExternalIpAddress>
            <VAppScopedVmId> xs:string </VAppScopedVmId>
            <VmNicId> xs:int </VmNicId>
        </OneToOneVmRule>
        <PortForwardingRule>
            <ExternalIpAddress> IpAddressType </ExternalIpAddress>
            <ExternalPort> xs:int </ExternalPort>
            <InternalIpAddress> IpAddressType </InternalIpAddress>
            <InternalPort> xs:int </InternalPort>
            <Protocol> xs:string </Protocol>
        </PortForwardingRule>
        <VmRule>
            <ExternalIpAddress> IpAddressType </ExternalIpAddress>
            <ExternalPort> xs:int </ExternalPort>
            <VAppScopedVmId> xs:string </VAppScopedVmId>
            <VmNicId> xs:int </VmNicId>
            <InternalPort> xs:int </InternalPort>
            <Protocol> xs:string </Protocol>
        </VmRule>
    </NatRule>
    <ExternalIp> IpAddressType </ExternalIp>
</NatService>

Elements

Element Type Required Modifiable Since Deprecated Description
ExternalIp IpAddressType No always 5.1 External IP address for rule.
IsEnabled boolean No always Enable or disable the service using this flag
NatRule NatRuleType No always A NAT rule.
NatType string No always One of: ipTranslation (use IP translation), portForwarding (use port forwarding)
Policy string No always One of: allowTraffic (Allow all traffic), allowTrafficIn (Allow inbound traffic only)
VCloudExtension VCloudExtensionType No always An optional extension element that can contain an arbitrary number of elements and attributes. Not related to extension services.