5.5

Table Of Contents
Example: Capture a vApp
This request captures the vApp created in “Example: Compose a vApp,” on page 102. Because the request
does not specify a TargetCatalogItem, a new catalog item is created for the new template.
Request:
POST https://vcloud.example.com/api/catalog/5/action/captureVApp
Content-Type: application/vnd.vmware.vcloud.captureVAppParams+xml
...
<?xml version="1.0" encoding="UTF-8"?>
<CaptureVAppParams
xmlns="http://www.vmware.com/vcloud/v1.5"
name="Example Corp’s CRM Appliance">
<Description>Captured CRM Appliance</Description>
<Source
href="https://vcloud.example.com/api/vApp/vapp-33" />
</CaptureVAppParams>
The response is a sparsely populated VApp element in the target VDC. It contains a Link to the catalog
specified in the request. When the Task embedded in the response is complete, the vApp has been captured
and a vApp template created in the target catalog.
Response:
200 OK
Content-Type: application/vnd.vmware.vcloud.vAppTemplate+xml
...
<VAppTemplate
xmlns="http://www.vmware.com/vcloud/v1.5"
xmlns:ovf="http://schemas.dmtf.org/ovf/envelope/1"
href="https://vcloud.example.com/api/vAppTemplate/vappTemplate-232">
...
<Link
rel="up"
type="application/vnd.vmware.vcloud.catalog+xml"
href="https://vcloud.example.com/api/catalog/5" />
...
<Description>Captured CRM Appliance</Description>
...
<Tasks>
<Task
...
operation="Capturing Virtual Application Template Example Corp’s CRM Appliance (232)"
...
</Task>
</Tasks>
...
</VAppTemplate>
Chapter 5 Deploying and Operating vApps
VMware, Inc. 109