
vShield API Programming Guide
100 VMware, Inc.
<xs:maxInclusive value="9000"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="Fqdn">
<xs:restriction base="xs:string">
<xs:minLength value="1"/>
<xs:maxLength value="256" />
<xs:pattern
value="[A-Za-z0-9][A-Za-z0-9_-]*(([.][A-Za-z0-9]+)|(([.][A-Za-z0-9_-]+)+[.][A-Za-z
0-9]+))?"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="StateOnVsm">
<xs:restriction base="xs:string">
<xs:enumeration value="out-of-sync"/>
</xs:restriction>
</xs:simpleType>
</xs:schema>
Error Message Schema
Thisschemadetailserrormessages.
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">
<xs:element name="Errors">
<xs:complexType>
<xs:sequence>
<xs:element maxOccurs="unbounded" name="Error" type="ErrorType"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:complexType name="ErrorType">
<xs:sequence>
<xs:element name="code" type="xs:unsignedInt"/>
<xs:element name="description" type="xs:string"/>
<xs:element minOccurs="0" name="detailedDescription" type="xs:string"/>
<xs:element minOccurs="0" name="index" type="xs:int"/>
<xs:element minOccurs="0" name="resource" type="xs:NMTOKEN"/>
<xs:element minOccurs="0" name="requestId" type="xs:NMTOKEN"/>
<xs:element minOccurs="0" name="module" type="xs:NMTOKEN"/>
</xs:sequence>
</xs:complexType>
</xs:schema>
IfaRESTAPIcallresultsinanerror,theHTTPreplycontainsthefollowinginformation.
AnXMLerrordocumentastheresponsebody
Content‐Type:application/xml
Anappropriate2xx,4xx,or5xxHTTPstatuscode
Table 9-1. Error Message Status Codes
Code Description
200 OK Therequestwasvalidandhasbeencompleted.Generally,thisresponseisaccompanied
byabodydocument(XML).
201 Created Therequestwascompletedandnewresourcewascreated.TheLocationheaderofthe
responsecontainstheURIofnewlycreatedresource.
204 No Content Sameas200 OK,buttheresponsebodyisempty
(NoXML).
Komentarze do niniejszej Instrukcji