VMware Cloud Director API - POST-CaptureVApp-catalog
POST /catalog/{id}/action/captureVApp
- Operation:
- POST /catalog/{id}/action/captureVApp
- Description:
- Create a vApp template in this catalog from a vApp.
- Since:
- 5.5
- Input parameters
-
- Consume media type(s):
-
application/vnd.vmware.vcloud.captureVAppParams+xml
application/vnd.vmware.vcloud.captureVAppParams+json
- Input type:
- CaptureVAppParamsType
- Output parameters
-
TaskType
The response includes a Task element. You can monitor the task to to track the creation of the vApp template.
- Produce media type(s):
-
application/vnd.vmware.vcloud.task+xml
application/vnd.vmware.vcloud.task+json
- Output type:
- TaskType
- Examples
-
- Request
-
HTTP 1.1
POST /api/catalog/5aac6b64-e4e6-4be3-83c8-58248efd67aa/action/captureVApp
Headers:
Content-Length: 378
Content-Type: application/vnd.vmware.vcloud.captureVAppParams+xml; charset=ISO-8859-1
x-vcloud-authorization: /LOwXxsAG2/2J87P4zt3nZ2dkxZXke77j6cFEpCExac=
Body:
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<vcloud:CaptureVAppParams
xmlns:vcloud="http://www.vmware.com/vcloud/v1.5"
name="vApp1">
<vcloud:Description>Copying 'vApp1' .</vcloud:Description>
<vcloud:Source
href="https://vcloud.example.com/api/vApp/vapp-ee64a2c1-d8c6-495e-8142-d697b164cb51"
name="vApp1"
type="application/vnd.vmware.vcloud.vApp+xml"/>
</vcloud:CaptureVAppParams>
- Response
-
HTTP/1.1 202 Accepted
Headers:
Content-Length: 1374
Content-Type: application/vnd.vmware.vcloud.task+xml; version=5.5
Location: https://vcloud.example.com/api/task/f000ba04-1c83-48c1-b114-0a1809599a36
Vary: Accept-Encoding
Body:
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<Task
xmlns="http://www.vmware.com/vcloud/v1.5"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
cancelRequested="false"
expiryTime="2013-06-17T14:11:31.686+03:00"
href="https://vcloud.example.com/api/task/f000ba04-1c83-48c1-b114-0a1809599a36"
id="urn:vcloud:task:f000ba04-1c83-48c1-b114-0a1809599a36"
name="task"
operation="Capturing Virtual Application Template vApp1(9752e33c-afac-4814-92e9-511af88cd9a1)"
operationName="vdcCaptureTemplate"
serviceNamespace="com.vmware.vcloud"
startTime="2013-03-19T14:11:31.686+02:00"
status="running"
type="application/vnd.vmware.vcloud.task+xml"
xsi:schemaLocation="http://www.vmware.com/vcloud/v1.5 http://https://vcloud.example.com/api/v1.5/schema/master.xsd">
<Link
href="https://vcloud.example.com/api/task/f000ba04-1c83-48c1-b114-0a1809599a36/action/cancel"
rel="task:cancel"/>
<Owner
href="https://vcloud.example.com/api/vAppTemplate/vappTemplate-9752e33c-afac-4814-92e9-511af88cd9a1"
name="vApp1"
type="application/vnd.vmware.vcloud.vAppTemplate+xml"/>
<User
href="https://vcloud.example.com/api/admin/user/5869d5cf-cab1-4fd2-8e49-2b052d39d8bb"
name="system"
type="application/vnd.vmware.admin.user+xml"/>
<Organization
href="https://vcloud.example.com/api/org/a06bf095-7e26-45f8-bd93-e6b16e668e82"
name="Default"
type="application/vnd.vmware.vcloud.org+xml"/>
<Progress>1</Progress>
<Details/>
</Task>