EasyManua.ls Logo

VMware VCLOUD API 1.0 - API - Get Information about a Catalogitem

VMware VCLOUD API 1.0 - API
212 pages
Print Icon
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
36 VMware, Inc.
Thisresponsebodyincludes:
ALinkelementthatreferencestheorganizationthatcontainsthiscatalog:
<Link rel="up" type="application/vnd.vmware.vcloud.org+xml"
href="http://vcloud.example.com/api/v1.0/org/5"/>
ALinkelementthatyoucanusetoaddanitemtothecatalog:
<Link rel="add" type="application/vnd.vmware.vcloud.catalogItem+xml"
href="http://vcloud.example.com/api/v1.0/catalog/32/catalogItems"/>
SeveralCatalogItemelements.EachoftheseelementsincludesanhrefattributewhosevalueisaURL
thatyoucanGETtoobtainmoreinformationabouttheitem,asshowninExample 3‐3.
AnIsPublishedelementwhosevalueindicateswhetherthiscatalogisvisibletootherorganizations.
Formoreinformationaboutcreatingcatalogsandmanagingtheircontents,see“CatalogingvAppTemplates
andMediaImages”onpage 54and“CatalogAdministration”onpage 107.Formoreinformationaboutthe
Catalogelementschema,see“Catalog”onpage 160.
Get Information About a CatalogItem
ACatalogItemelementcanreferenceavApptemplateoramediaobject.Requeststogetmoreinformation
aboutaCatalogItemreturnaCatalogItemdocumentthatincludes:
TheURLofthereferencedobject
LinkelementsthatenableanauthorizedusertomodifyorremovetheCatalogItem
AnEntityelementthatincludesthehref,type,andnameoftheobjectthattheCatalogItemreferences.
AnEntitycanappearinatmostoneCatalog.
OptionalPropertyelements,eachofwhichisakey=valuepair.AnorganizationcanuseProperty
elementstoimplementakey‐basedlookupschemeforcatalogitems.
Example 3-3. Get Information About a CatalogItem
Request:
GET http://vcloud.example.com/api/v1.0/catalogItem/221
Response:
200 OK
Content-Type: application/vnd.vmware.vcloud.catalogItem+xml
...
<CatalogItem name="Ubuntu Template with vsftpd"
href="http://vcloud.example.com/api/v1.0/catalogItem/221" ...>
<Link rel="edit" type="application/vnd.vmware.vcloud.catalogItem+xml"
href="http://vcloud.example.com/api/v1.0/catalogItem/221"/>
<Link rel="remove" href="http://vcloud.example.com/api/v1.0/catalogItem/221"/>
<Description>Ubuntu Template with vsftpd</Description>
<Entity href="http://vcloud.example.com/api/v1.0/vAppTemplate/vappTemplate-111"
type="application/vnd.vmware.vcloud.vAppTemplate+xml" name="Ubuntu Template
with vsftpd"/>
<Property key="Company">Example</Property>
</CatalogItem>

Table of Contents