5.5

Table Of Contents
4 Examine the Catalog element to find the copy and move links it contains.
These links have the following form:
<Link
rel="copy"
type="application/vnd.vmware.vcloud.copyOrMoveCatalogItemParams+xml"
href="https://vcloud.example.com/api/catalog/44/action/copy" />
<Link
rel="move"
type="application/vnd.vmware.vcloud.copyOrMoveCatalogItemParams+xml"
href="https://vcloud.example.com/api/catalog/44/action/move" />
5 Create a CopyOrMoveCatalogItemParams element that specifies the catalog item in the Source element.
See “Example: Copy a Catalog Item,” on page 77.
6
POST the CopyOrMoveCatalogItemParams to the appropriate link from the target catalog.
Option Description
Copy the Catalog Item
POST the CopyOrMoveCatalogItemParams to the rel="copy" link.
Move the Catalog Item
POST the CopyOrMoveCatalogItemParams to the rel="move" link.
Example: Copy a Catalog Item
This request copies the catalog item shown in “Example: Retrieve a Catalog Item,” on page 29 to another
catalog. The response is a Task.
Request:
POST https://vcloud.example.com/api/catalog/44/action/copy
Content-Type: application/vnd.vmware.vcloud.copyOrMoveCatalogItemParams+xml
...
<?xml version="1.0" encoding="UTF-8"?>
<CopyOrMoveCatalogItemParams
xmlns:vcloud="http://www.vmware.com/vcloud/v1.5"
name="Ubuntu 10.04 Template">
<Description>Reference copy of Ubuntu FTP Server</Description>
<Source
href="https://vcloud.example.com/api/catalogItem/221" />
</CopyOrMoveCatalogItemParams>
Response:
202 Accepted
Content-Type: application/vnd.vmware.vcloud.task+xml
...
<Task ... operation="Copying Virtual Application Template Ubuntu 10.04 Template" ...>
...
</Task>
Chapter 4 Provisioning an Organization
VMware, Inc. 77