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
108 VMware, Inc.
ATaskthattracksthecreationofthecatalog
AnIsPublishedelementwhosecontentisthestringfalse.
Example 6-19. Create a Catalog
Request:
POST http://vcloud.example.com/api/v1.0/admin/org/26/catalogs
Content-Type: application/vnd.vmware.admin.catalog+xml
<Catalog name="Custom Catalog" xmlns="http://www.vmware.com/vcloud/v1">
<Description>Custom Catalog</Description>
</Catalog>
Response:
201 Created
Content-Type: application/vnd.vmware.admin.catalog+xml
...
<Catalog href="http://vcloud.example.com/api/v1.0/catalog/32" name="Custom Catalog" ...>
<Description>Custom Catalog</Description>
<Tasks>
<Task ...>
...
<Task>
<Tasks>
<Link rel="up" type="application/vnd.vmware.admin.organization+xml"
href="http://vcloud.example.com/api/v1.0/admin/org/26"/>
<Link rel="alternate" href="http://vcloud.example.com/api/v1.0/catalog/32"/>
<Link rel="add" type="application/vnd.vmware.vcloud.catalogItem+xml"
href="http://vcloud.example.com/api/v1.0/catalog/32/catalogItems"/>
<Link rel="edit" type="application/vnd.vmware.vcloud.catalog+xml"
href="http://vcloud.example.com/api/v1.0/catalog/32"/>
<Link rel="remove" href="http://vcloud.example.com/api/v1.0/catalog/32"/>
<Link rel="publish" href="http://vcloud.example.com/api/v1.0/catalog/32/action/publish"/>
<CatalogItems/>
<IsPublished>false</IsPublished>
</Catalog>
Get an Administrative View of a Catalog
Anadministrativeviewofacatalogisnearlyidenticaltoauserviewbutcontainsadditionalactionlinksthat
supportadministrativeoperationssuchaseditandremove.Toseeanadministrativeviewofacatalog,an
administratorcanmakeaGETrequesttoitsadminURL,asshowninExample 620
.Forauserviewofthe
samecatalog,seeExample 32onpage 35.
Example 6-20. Get an Administrative View of a Catalog
Request:
GET http://vcloud.example.com/api/v1.0/admin/catalog/32
Response:
200 OK
Content-Type: application/vnd.vmware.admin.catalog+xml
...
<Catalog .... >
...
<Link rel="edit" href="http://vcloud.example.com/api/v1.0/admin/catalog/32"/>
<Link rel="remove" href="http://vcloud.example.com/api/v1.0/admin/catalog/32"/>

Table of Contents

Related product manuals