VMware, Inc. 109
Chapter 6 Administrative Operations
<Description>Custom Catalog</Description>
<CatalogItems>
...
</CatalogItems>
...
</Catalog>
Publish a Catalog
PublishingacatalogmakesthecatalogvisibletoallorganizationsinavCloud.Anadministratorofan
organizationthatcanpublishcatalogs(onewhoseCanPublishCatalogselementhasavalueoftrue)can
publishacatalogbymakingaPOSTrequesttothecatalog’spublishURLandsupplyinga
PublishCatalogParamsbody
thatsetsthevalueofthecatalog’sIsPublishedelementtotrue.Example 6‐21
publishesthecatalogcreatedinExample 6‐19.
Example 6-21. Publish a Catalog
Request:
POST http://vcloud.example.com/api/v1.0/admin/catalog/32/action/publish
Content-Type: application/vnd.vmware.admin.publishCatalogParams+xml
...
<PublishCatalogParams xmlns="http://www.vmware.com/vcloud/v1">
<IsPublished>true</IsPublished>
</PublishCatalogParams>
Response:
204 No Content
Modify Catalog Metadata
Anadministratorcanmodifycatalogmetadatasuchasitsnameanddescriptionbycreatingamodified
CatalogbodyandPUTtingittothecatalog’seditlink.TherequestinExample 6‐22changesthenameand
descriptionofthecatalogcreatedinExample 6‐19.TheresponsecontainsthemodifiedCatalogbody,
includingtheCatalogItemselement,whichwasunchangedby,andnotincludedin,therequest.
Example 6-22. Modify Catalog Metadata
Request:
PUT http://vcloud.example.com/api/v1.0/admin/catalog/32
Content-Type: application/vnd.vmware.admin.catalog+xml
<Catalog name="TechOps Catalog 01" xmlns="http://www.vmware.com/vcloud/v1">
<Description>TechOps Approved Templates Catalog</Description>
</Catalog>
Response:
200 OK
Content-Type: application/vnd.vmware.admin.catalog+xml
<Catalog href="http://vcloud.example.com/api/v1.0/catalog/32" name="TechOps Catalog 01" ...>
<Description>TechOps Approved Templates Catalog</Description>
<Link rel="add" type="application/vnd.vmware.vcloud.catalogItem+xml"
href="http://vcloud.example.com/api/v1.0/catalog/32/catalogItems"/>