VMware, Inc. 91
Appendix
<xs:element minOccurs="0" name="internalPort" type="PortInfo" /> <!-- port is valid
only for protocol tcp|udp -->
<xs:element name="externalIpAddress" type="IpInfo" />
<xs:element minOccurs="0" name="externalPort" type="PortInfo" /> <!-- port is valid
only for protocol tcp|udp -->
<xs:element minOccurs="0" name="enableLog" type="xs:boolean" /> <!-- Not when present,
default behavior is false -->
<xs:element minOccurs="0" name="comments" type="xs:string" /> <!-- When present in
response for an internalReadOnlyRule, it marks the service for which this rule is
added -->
</xs:sequence>
</xs:complexType>
<xs:complexType name="FirewallConfig"> <!-- FirewallConfiguration -->
<xs:sequence>
<xs:element minOccurs="0" name="defaultPolicy">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:pattern value="allow|deny"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element minOccurs="0" name="enableLoggingForDefaultPolicy" type="xs:boolean" />
<!-- When not present, default behavior is false -->
<xs:element minOccurs="0" name="blockIcmpErrors" type="xs:boolean" /> <!-- When not
present, default behavior is false -->
<xs:element minOccurs="0" maxOccurs="unbounded" name="rule" type="FirewallRule" />
</xs:sequence>
</xs:complexType>
<xs:complexType name="FirewallRule">
<xs:sequence>
<xs:element minOccurs="0" name="state" type="StateOnVsm" /> <!-- Only in Response -->
<xs:element minOccurs="0" name="ruleType" type="xs:string" /> <!-- Only in response.
It will be used to tag the internal readOnly rules -->
<xs:choice>
<xs:element name="networkId" type="Moid" />
<xs:element name="vpnInterface"/>
</xs:choice>
<xs:choice>
<xs:sequence>
<xs:element name="protocol" type="Protocol" />
<xs:element minOccurs="0" name="icmpType" type="IcmpType" /> <!-- Mandatory
only when protocol=icmp -->
<xs:element minOccurs="0" name="destinationPort" type="PortInfo" />
</xs:sequence>
<xs:element name="applicationIdentifier" type="xs:string"/>
</xs:choice>
<xs:element name="destinationIpAddress" type="FwIpInfo" />
<xs:element minOccurs="0" name="sourcePort" type="PortInfo" />
<xs:element name="sourceIpAddress" type="FwIpInfo" />
<xs:element name="direction">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:pattern value="in|out"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="action">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:pattern value="allow|deny"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element minOccurs="0" name="enableLog" type="xs:boolean" /> <!-- When not present,
default behavior is false -->
Commentaires sur ces manuels