EasyManua.ls Logo

VMware VCLOUD API 1.0 - API

VMware VCLOUD API 1.0 - API
212 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
vCloud API Programming Guide
38 VMware, Inc.
<ResourceEntity href="http://vcloud.example.com/vApp/vapp-413"
type="application/vnd.vmware.vcloud.vApp+xml" name="Example Corp. CRM"/>
...
</ResourceEntities>
<AvailableNetworks>
<Network href="http://vcloud.example.com/api/v1.0/network/14"
type="application/vnd.vmware.vcloud.network+xml" name="IsolatedOrgNet"/>
<Network href="http://vcloud.example.com/api/v1.0/network/54"
type="application/vnd.vmware.vcloud.network+xml" name="Internet"/>
</AvailableNetworks>
<NicQuota>0</NicQuota>
<NetworkQuota>0</NetworkQuota>
<VmQuota>0</VmQuota>
<IsEnabled>true</IsEnabled>
</Vdc>
TheresponseisadetaileddescriptionofthevDCanditscontents.Itincludes:
Linkelementswhoserelattributehasavalueofadd.Eachoftheselinkshasanhrefattributewhose
valueisaURLthataclientcanusetoaddvApps,vApptemplates,andmediaimagestovDCinventory.
Severalmethodsofaddinginventoryaresupported,includingupload,clone,and
compose.
ResourceEntityelementsthatreferencevAppsthathavebeeninstatiatedinorimportedtothisvDC,
andvApptemplatesandvirtualmediaimagesthathavebeenuploadedtothevDC.
AlistoforganizationnetworksthatareavailableinthevDC.
Othermetadata,includingquotaandvDCstateinformation.
Formoreinformation,see“Vdc”onpage 152.
Getting More Information About an Object
AnobjectinavCloudcanberepresentedbylinksinvarioustypesofXMLcontainers.Regardlessofwherethe
linkappears,theobjectreferenceitcontains(itshrefattributevalue)isalwaysthesame.Anorganization
networkcanberepresentedbyalinkwithrel="down"inanorganization,oras
amemberofthe
AvailableNetworkselementofavDC.
CatalogsprovidealevelofindirectionforreferencestomediaimagesandvApptemplates.AvApptemplate
ormediaimagecanbereferencedbyaCatalogIteminacatalogoraResourceEntityinavDC.The
CatalogItemshowninExample 32,
aVAppTemplatewhoseURLis
http://vcloud.example.com/api/v1.0/vAppTemplate/vappTemplate111,isalsocontainedbythevDC
referencedinExample 34.IntheVdcbody,theVAppTemplateisrepresentedasResourceEntityelement,
whichincludesalink(thevalueofthehrefattribute)tothetemplate.TheCatalog,ontheotherhand,
containsonly
CatalogItemelements,eachofwhichincludesalinkthataclientcanusetogetmore
informationabouttheobjectthattheCatalogItemrepresents.BoththeResourceEntityintheVdcandthe
CatalogItemintheCatalogrefertothesamevApptemplate.TheResourceEntityelementincludesalink
thata
clientcanusetoGETarepresentationofthevApp,butaclientmustfirstGETaCatalogItemtoobtain
thatkindoflink,whichisnotcontainedintheCatalogitself.
AResourceEntityelementappearsinaVdcelementassoonastheunderlyingvApptemplateormedia
imagehas
beencreated.Referencestothoseobjectsdonotappearinacataloguntilthecatalogowneradds
themtoit.Inmostcases,theobjectscannotbeuseduntiltheyhavebeenaddedtoacatalog.
Get Information About a Media Image
AclientcandiscovertheURLofamediaimagebybrowsinginacatalogandexaminingaCatalogItemto
findtheEntityelementthatreferencestheimage,orbybrowsinginavDCforaResourceEntityelement
thatreferencestheimage.Afterclienthasthe image’sURL,itcanuse
itasthetargetofaGETrequest,asshown
inExample 35.
Ifthemediaimagehasbeenincludedinacatalog,theMediaelementintheresponseincludesalinktothe
CatalogItemthatreferencesit.

Table of Contents

Related product manuals