5.5

Table Of Contents
2 Examine the response to locate the Link element that contains the URL for publishing the catalog.
This element has a rel attribute value of publish and a type attribute value of
application/vnd.vmware.admin.publishCatalogParams+xml, as this example shows:
<Link
rel="publish"
type="application/vnd.vmware.admin.publishCatalogParams+xml"
href="https://vcloud.example.com/api/admin/catalog/32/action/publish" />
3 Create a PublishCatalogParams element that contains an IsPublished element with a value of true.
4 POST the PublishCatalogParams body to the catalog's rel="publish" URL.
The catalog is shared and becomes available to members of all other organizations in the cloud.
Example: Share a Catalog With All Organizations in a Cloud
Request:
POST https://vcloud.example.com/api/admin/catalog/32/action/publish
Content-Type: application/vnd.vmware.admin.publishCatalogParams+xml
...
<?xml version="1.0" encoding="UTF-8"?>
<PublishCatalogParams
xmlns="http://www.vmware.com/vcloud/v1.5">
<IsPublished>true</IsPublished>
</PublishCatalogParams>
Response:
204 No Content
Share a Catalog With Specific Organizations in a Cloud
A system administrator can share a catalog to make it visible to the administrators of specific organizations
in a cloud.
The owner of a catalog can share it to make it available to all organization in the cloud. When more selective
sharing is required, a system administrator can share a catalog with specific organizations if that catalog is
not already shared to all organizations.
Prerequisites
Verify that you are logged in to the vCloud API as a system administrator.
Procedure
1 Retrieve the XML representation of the organization that contains the catalog.
Use a request like this one:
GET https://vcloud.example.com/api/org/26
2 Examine the Org element to find the controlAccess links for the catalogs that it contains.
These links have the following form:
<Link
rel="down"
type="application/vnd.vmware.vcloud.controlAccess+xml"
href="https://vcloud.example.com/api/org/id/catalog/id/controlAccess/"/>
Chapter 6 Creating and Managing Organizations
VMware, Inc. 209