vCloud API Programming Guide
56 VMware, Inc.
Remove an Item from a Catalog
AorganizationadministratororauserwithadequatepermissionscanremoveaCatalogItembymakinga
DELETErequesttotheitsrel="remove"link.Example 4‐23removestheCatalogItemcreatedin
Example 4‐22.
Example 4-23. Remove a CatalogItem
Request:
DELETE http://vcloud.example.com/api/v1.0/catalogItem/221
Response:
204 No Content
Catalog Links in a VApp Template or Media Image
EveryvAppTemplateandMediaelementthathasbeenaddedtoacatalogcontainsarel="catalogItem"
linkwhosehrefvalueistheURLoftheCatalogItemthatreferencesthetemplateormediaimage(seethe
responseinExample 3‐6onpage 39).AclientcanGETthatURLandexaminetheresponse
tofindthe
rel="up"linkintheCatalogItem(seetheresponseinExample 4‐22).Thislinkisareferencetothecatalog
thatcontainstheCatalogItem.
Controlling Access
AnorganizationadministratorcanusecontrolAccesslinkstocontrolaccesstocatalogsandvApps.
Control Access to Catalogs
Whenyoulistthecontentsofanorganization,eachcatalogincludesaccesscontrollinks,asshownin
Example 4‐24,whichisanexcerptfromExample 3‐1onpage 34.
Example 4-24. Access Control Links for a Catalog
<Org ... >
<Link rel="down" type="application/vnd.vmware.vcloud.catalog+xml"
href="http://vcloud.example.com/api/v1.0/catalog/32" name="MainCatalog"/>
<Link rel="down" type="application/vnd.vmware.vcloud.controlAccess+xml"
href="http://vcloud.example.com/api/v1.0/catalog/32/controlAccess/"/>
<Link rel="controlAccess" type="application/vnd.vmware.vcloud.controlAccess+xml"
href="http://vcloud.example.com/api/v1.0/catalog/32/action/controlAccess/"/>
<Link rel="down" type="application/vnd.vmware.vcloud.catalog+xml"
href="http://vcloud.example.com/api/v1.0/catalog/37" name="Shared Catalog"/>
<Link rel="down" type="application/vnd.vmware.vcloud.controlAccess+xml"
href="http://vcloud.example.com/api/v1.0/catalog/37/controlAccess/"/>
<Link rel="controlAccess" type="application/vnd.vmware.vcloud.controlAccess+xml"
href="http://vcloud.example.com/api/v1.0/catalog/37/action/controlAccess/"/>
...
</Org>
Foreachofthecatalogslistedinthisexcerpt,threelinksareprovided:
ALinkwithrel="down"thatprovidestheURLforthecatalogitself
AnotherLinkwithrel="down"thataclientcanusetoretrievethecatalog’saccesscontrolsettings
ALinkwithrel="controlAccess"thataclientcanusetomodifythecatalog’saccesscontrolsetting
Anorganizationadministratororprivilegedusercanusetheselinkstoviewormodifyaccesscontrolsona
catalog.Example 4‐25showstherequesttoviewtheaccesscontrolsettingsforacatalog.