1.5

Table Of Contents
Links to vDCs have the following form:
<Link rel="down"
type="application/vnd.vmware.vcloud.vdc+xml"
name="vDCName"
href="https://vcloud.example.com/api/vdc/5"/>
2 Browse the vDCs in your organization to find the ResourceEntity element that represents the item to add
to the catalog.
Resource entities are contained in the ResourceEntities element of a Vdc .
<Vdc
xmlns="http://www.vmware.com/vcloud/v1.5"
name="ExampleVdc01"
type="application/vnd.vmware.vcloud.vdc+xml"
href="https://vcloud.example.com/api/vdc/5">
...
<ResourceEntities>
<ResourceEntity
href="https://vcloud.example.com/api/vAppTemplate/vappTemplate-111"
type="application/vnd.vmware.vcloud.vAppTemplate+xml"
name="Ubuntu Template with vsftpd"/>
<ResourceEntity
type="application/vnd.vmware.vcloud.vAppTemplate+xml"
name="NewVAppTemplate"
href="https://vcloud.example.com/api/vAppTemplate/vappTemplate-559" />
...
</ResourceEntities>
...
</Vdc>
3 Retrieve the XML representation of the catalog to which to add the item.
Use a request like this one:
GET https://vcloud.example.com/api/catalog/32
4 Examine the response to locate the Link element that contains the URL for adding items to the catalog.
This element has a rel attribute value of add and a type attribute value of
application/vnd.vmware.admin.catalogItem+xml, as this example shows:
<Link
rel="add"
type="application/vnd.vmware.admin.catalogItem+xml"
href="https://vcloud.example.com/api/catalog/32/catalogItems"/>
5 Create a CatalogItem element that contains a reference to the ResourceEntity
See “Example: ResourceEntity and Corresponding CatalogItem,” on page 72 for an example.
6 POST the CatalogItem body to the catalog's rel="add" URL.
Step 4 explains how to find this URL.
Chapter 4 Provisioning an Organization with vApps, Templates, and Media
VMware, Inc. 71