EasyManua.ls Logo

VMware VCLOUD API 1.0 - API - Catalog Links in a Vapp Template or Media Image; Remove an Item from a Catalog; Controlling Access; Control Access to Catalogs

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
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.

Table of Contents