vCloud API Programming Guide
144 VMware, Inc.
name
Everyobjectrequiresanameattributewhosestringvalueprovidesthedisplaynamefortheobject.Thevalue
ofnamemustbeuniquewithinagivenscope,asshowninTable 8‐3.
href
EveryobjecthasuniquereferenceencodedinthehrefattributeofitsXMLrepresentation.See“Object
ReferencePrototype”onpage 142.
type
EveryobjectallowsatypeattributeinitsXMLrepresentation.Thevalueofthisattributeistheobjecttype
expressedasastring,whichclientsshouldinterpretasthemediatype(HTTPContent‐Type)ofthe
representation.Thisstringiscase‐insensitiveinrequests,andcanbereturnedineithermixed
caseorlowercase
charactersinresponses.Formoreinformation,see“ContentType”onpage 142.
status
ObjectssuchasvAppTemplate,vApp,andVm,thatextendtheResourceEntitytypehaveastatusattribute
whosevalueindicatesthestateoftheobject,asshowninTable 8‐4,whereYESindicatesthatastatusvalueis
allowedfortheobjectlistedinthecolumnheader.Statusforan
object,suchasavAppTemplateorvApp,whose
Children(Vmobjects)eachhaveastatusoftheirown,iscomputedfromthestatusoftheChildren.
Table 8-3. Requirements for Unique Object Names
Object Type Name Scope
ProviderVdc vCloud
Org,AdminOrg vCloud
Vdc Containingorganization
Catalog Containingorganization
CatalogItem Containingcatalog
vAppTemplate Notconstrained
vApp Containingorganization
Vm ContainingvApp
Media Notconstrained
Network Container(Org,vApp,orvCloud)
NOTEThedeploymentstatusofanobjectisindicatedbythevalueofitsdeployedattribute.
Table 8-4. vAppTemplate, vApp, and Vm status Attribute Values
Value Description vAppTemplate vApp Vm
‐1Theobjectcouldnotbecreated. YES YES YES
0Theobjectisunresolved. YES YES YES
1Theobjectisresolved. YES YES YES
2Theobjectisdeployed. No No No
3Theobjectissuspended. No YES
†
YES
4Theobjectispoweredon. No YES
†
YES
5Theobjectiswaitingforuserinput. No YES
†
YES
6Theobjectisinanunknownstate. YES YES YES
7Theobjectisinanunrecognizedstate. YES YES YES