VMware, Inc. 81
Appendix
</xs:complexType>
<xs:complexType name="IpsecVPNConfig">
<xs:choice>
<xs:element minOccurs="0" name="SiteToSiteIpsec" type="SiteToSiteIpsec"/>
<xs:element minOccurs="0" name="IpsecService" type="xs:string" />
<!-- Only in Response from Server -->
</xs:choice>
</xs:complexType>
<xs:complexType name="SiteToSiteIpsec">
<xs:choice>
<xs:element name="VPNServerConfig" type="VPNServerConfig"/>
<!-- This might be absent when addSite api is called -->
<xs:element maxOccurs="unbounded" name="VPNSite" type="VPNSite"/>
</xs:choice>
</xs:complexType>
<xs:complexType name="VPNServerConfig">
<xs:sequence>
<xs:element name="externalIpAddress" type="IP" />
<xs:element minOccurs="0" name="natedPublicIpAddress" type="IP" />
<xs:element minOccurs="0" name="log" type="xs:boolean" />
</xs:sequence>
</xs:complexType>
<xs:complexType name="VPNSite">
<xs:sequence>
<xs:element minOccurs="0" name="Configuration" type="VPNSiteConfig"/>
<!-- This might be absent when addTunnel api is called -->
<xs:element minOccurs="0" maxOccurs="unbounded" name="VPNTunnel" type="VPNTunnel"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="VPNSiteConfig">
<xs:sequence>
<xs:element name="siteName">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:pattern value="[a-zA-Z0-9_]+"/> <!-- siteName should contain only
alphanumeric characters -->
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="remoteEndPointexternalIpAddress" type="IP" />
<xs:element name="sharedSecret">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:minLength value="1"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="mtu">
<xs:simpleType>
<xs:restriction base="xs:unsignedInt">
<xs:minInclusive value="1"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
</xs:sequence>
</xs:complexType>
<xs:complexType name="VPNTunnel">
<xs:sequence>
<xs:element minOccurs="0" name="Configuration" type="VPNTunnelConfig"/>
<xs:element minOccurs="0" name="DetailedConfiguration"
type="VPNTunnelDetailedConfig"/>
<!-- Response from REST server for Query Connection Parameters -->
Comentarios a estos manuales