VMware, Inc. 161
Chapter 9 User API Reference
Property
EachCatalogItemcanhaveuptotenPropertyelements,eachofwhichexpressesakey=valuerelationship.
Thekeyisanattributevalue,andthevalueisthecontentofthePropertyelementitself.Thiselementcanbe
usedtoholdarbitrarymetadataattachedtoaCatalogItem.ThevCloudAPI
itselfmakesnouseofthis
information.
Example 9‐1illustratestheuseofthePropertyelementinaCatalogItem.
Example 9-1. CatalogItem With Property Elements
<CatalogItem
...
<Property key="Originator">Example Corp.</Property>
<Property key="Project">Redwood</Property>
</CatalogItem>
Media
TheMediaelementrepresentsvirtualmedia,suchasanISOorfloppyimage.
Content-Type application/vnd.vmware.vcloud.media+xml
Object href prototype API‐URL/media/id
VAppTemplate
AVAppTemplateisanabstractdescriptionofavApp.ItiscreatedwhenyouuploadanOVFpackagetoavDC.
Content-Type application/vnd.vmware.vcloud.vAppTemplate+xml
Object href prototype API‐URL/vAppTemplate/vAppTemplate‐id
Schema
Name Min Max Type Description
key 1 1 xs:string Keyassociatedwiththestringvaluecontainedinthe
element.Thelengthofthekeycannotexceed80
characters.Thelengthofthevaluecannotexceed256
characters.
Schema
Name Min Max Type Description
name 1 1 xs:string Commonobjectnameattribute
anyattributename 0 n any Includestype,href,XMLnamespaceidentifiers
status 01 xs:int Creationstatusoftheobject
imageType 1 1 ImageType Oneof:
iso SpecifiesISO‐9660mediatype
floppy Specifies3.5”floppymediatype
size 1 1 xs:long Sizeofthemediafileinbytes
Description 01 xs:string Optionaldescription
Files 0 1 FilesListType Read‐onlycontainerforFileelements
Schema
Name Min Max Type Description
status 01 xs:int CreationstatusoftheVAppTemplate.
name 1 1 xs:string Commonobjectnameattribute