vCloud API Programming Guide
148 VMware, Inc.
<MediaType>application/vnd.vmware.vcloud.vdc+xml</MediaType>
<ComplexTypeName>CatalogItemType</ComplexTypeName>
<SchemaLocation>http://vcloud.example.com/api/v1.0/schema/master.xsd</SchemaLocation>
</MediaTypeMapping>
<MediaTypeMapping>
...
</MediaTypeMapping>
</VersionInfo>
</SupportedVersions>
SupportedVersions
ASupportedVersionselementisacontainerforVersionInfoelements.
VersionInfo
AVersionInfoelementdefinestheloginURLandmediatypessupportedbyaversionofthevCloud API.
Thiselementisread‐only.
MediaTypeMapping
AMediaTypeMappingelementdefinesthename,MIMEcontenttype,andschemalocationofacomplextype
supportedbythisversionofthevCloud API.
Thiselementisread‐only.
Extensibility
ThevCloud APIisdesignedtobeextensible.AllcomplextypesdefinedbytheAPIextendasingleabstract
complextype.Thiscomplextypeandalltypesbasedonitcanincludezeroormoreinstancesofanextension
elementthatcancontainanarbitrarynumberofelementsandattributes.
VCloudExtensibleTypeis
anabstracttypethatallcomplextypesdefinedinthevCloud APInamespace
(http://www.vmware.com/vcloud/v1)extend.Thistypeallowscustomattributestobe addedtoanytypeand
supportsdefinitionofcustomelementswithintheVCloudExtensionelement.
TheVCloudExtensionelementhasanattributenamedrequiredthatspecifieshowclientsandservers
proceedwhen
theyseeunknownextension.Therequiredattributeisoptionalbutifomittedisassumedto
bepresentwithavalueoftrue.Thatistosay,allVCloudExtensionelementsareassumedtorequireaserver
thatunderstandsthem.
Schema
Name Min Max Type Description
Version 1 1 xs:string Versionnumber
LoginUrl 1 1 xs:string URLforloggingintothisversion
MediaTypeMapping 0 n MediaTypeMappingType Mediatypeofthereferencedobject.Linksto
actionsdonothaveamediatype.
Schema
Name Min Max Type Description
MediaType 1 1 xs:string MIMEcontenttypeofthiscomplextype
ComplexTypeName 1 1 xs:string Nameofthiscomplextype
SchemaLocation 1 1 xs:anyURI URLfortheXMLschemadefinitiondocumentthatdefines
thiscomplextype