VMware, Inc. 145
Chapter 8 XML Representations in the vCloud API
XML Namespace Identifiers
ElementsusedasrequestorresponsebodiescontainasetofattributesthatenableXMLvalidation.Thebody
ofaPUTorPOSTrequestmustcontainallXMLnamespaceidentifiersrequiredtovalidatetheXMLit
contains.AresponsebodytypicallyincludesalltheXMLnamespaceidentifiersthattheserverused
tovalidate
it,inadditiontootherattributesthatspecifytheschemalocationssearchedduringvalidation.Table 8‐5
summarizestheseattributesandshowsthenamespaceidentifiersandprefixesusedintheexamplesinthis
guide.
XMLnamespaceidentifiersareomittedfrommostoftheexampleresponses(see“A b o u t theExamples”on
page 19).Example 8‐1showshowtheyappearinatypicalresponsebody.
Example 8-1. Response Body Showing XML Namespace Identifiers
<VApp xmlns="http://www.vmware.com/vcloud/v1" status="8" name="Linux FTP server"
type="application/vnd.vmware.vcloud.vApp+xml"
href="http://vcloud.example.com/api/v1.0/vApp/vapp-7"
xmlns:ovf="http://schemas.dmtf.org/ovf/envelope/1"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.vmware.com/vcloud/v1
http://vcloud.example.com/api/v1.0/schema/master.xsd">
...
</vApp>
8Theobjectispoweredoff. YES YES
†
YES
9Theobjectisinaninconsistentstate. No YES YES
10 Childrendonotallhavethesamestatus. YES Y ES No
11 Uploadinitiated,OVFdescriptorpending YES No No
12 Uploadinitiated,copyingcontents YES No No
13 Uploadinitiated,diskcontentspending YES No No
14 Uploadhasbeenquarantined YES No No
15 Uploadquarantineperiodhasexpired YES No No
† IndicatesthatallChildrenhavethisstatus
Table 8-4. vAppTemplate, vApp, and Vm status Attribute Values (Continued)
Value Description vAppTemplate vApp Vm
Table 8-5. XML Namespace Identifiers
Name Value Requirement
xmlns http://www.vmware.com/vcloud/v1.0 Requiredinallrequestbodies.
xmlns:vmext http://www.vmware.com/vcloud/extension/v1 Requiredinrequestbodiesthat
includeelementsfromthevSphere
PlatformExtensions
xmlns:ovf http://schemas.dmtf.org/ovf/envelope/1 Requiredinrequestbodiesthat
includeelementsprefixedwithovf:
xmlns:rasd http://schemas.dmtf.org/wbem/wscim/1/cim‐schema/2/
CIM_ResourceAllocationSettingData
Requiredinrequestbodiesthat
includeelementsprefixedwithrasd:
xmlns:vssd http://schemas.dmtf.org/wbem/wscim/1/cim‐schema/2/
CIM_VirtualSystemSettingData
Notrequiredinrequestbodies.
xsi:schemaLocation Aninstallation‐dependent
schemalocationsearchpath.
Formoreinformation,see
http://www.w3.org/TR/xmlschema‐0/#schemaLocation
Notrequiredinrequestbodies.
xmlns:xsi http://www.w3.org/2001/XMLSchema‐instance Notrequiredinrequestbodies.