5.5

Table Of Contents
<OrgVdcStorageProfileReference
type="application/vnd.vmware.vcloud.vdcStorageProfile+xml"
name="Silver"
id="urn:vcloud:vdcstorageProfile:84"
href="https://vcloud.example.com/api/vdcStorageProfile/84" />
</OrgVdcStorageProfileReferences>
NOTE If you are a system administrator, you must filter the response to show only those storage
profiles in the organization where you are creating the catalog.
2 Create an AdminCatalog element that includes a CatalogStorageProfiles element.
You can include a single CatalogStorageProfile in the request. Only the type and href attributes are
required. See the request portion of “Example: Specify a Storage Profile for a Catalog,” on page 206.
3 POST the AdminCatalog element to the organization's add URL for catalogs.
See the request portion of “Example: Specify a Storage Profile for a Catalog,” on page 206.
The server creates an empty catalog on the specified storage profile and returns its representation in the
response. See the response portion of “Example: Create a Catalog,” on page 199.
Example: Specify a Storage Profile for a Catalog
This example modifies the request shown in “Example: Create a Catalog,” on page 199 to add a
CatalogStorageProfiles element..
Request:
POST https://vcloud.example.com/api/admin/org/26/catalogs
Content-Type: application/vnd.vmware.admin.catalog+xml
...
<?xml version="1.0" encoding="UTF-8"?>
<AdminCatalog
xmlns="http://www.vmware.com/vcloud/v1.5"
name="Example Catalog">
<Description>New Catalog for Example Org</Description>
<CatalogStorageProfiles>
<VdcStorageProfile
type="application/vnd.vmware.admin.vdcStorageProfile+xml"
href="https://vcloud.example.com/api/vdcStorageProfile/59" />
</CatalogStorageProfiles>
</AdminCatalog>
The response is similar to the one shown in “Example: Create a Catalog,” on page 199, and includes a
CatalogStorageProfiles element derived form the one that you specified in the request.
Response:
201 Created
Content-Type: application/vnd.vmware.admin.catalog+xml
...
<AdminCatalog
xmlns:vcloud="http://www.vmware.com/vcloud/v1.5"
name="Example Catalog"
...
<Description>New Catalog for Example Org</Description>
<CatalogItems/>
...
vCloud API Programming Guide
206 VMware, Inc.