VMware Cloud Director API - POST-ConsolidateVm-vAppTemplate
POST /vAppTemplate/{id}/action/consolidate
- Operation:
- POST /vAppTemplate/{id}/action/consolidate
- Description:
- Consolidate VM snapshots.
- Since:
- 1.5
- Input parameters
-
- Consume media type(s):
- None
- Input type:
- None
- Output parameters
-
TaskType
This operation is asynchronous and returns a task that you can monitor to track the progress of the request.
- 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/vAppTemplate/vm-2c02ee20-8ec8-42c2-b010-1aa2f9041827/action/consolidate
Headers:
x-vcloud-authorization: tkgjgQtIS3veOl7Yf6fKBo9uty0vBe2f64jrT4Ogaz4=
Body:
- Response
-
HTTP/1.1 202 Accepted
Headers:
Content-Length: 1311
Content-Type: application/vnd.vmware.vcloud.task+xml; version=5.5
Location: https://vcloud.example.com/api/task/fef228a2-e424-437e-92f5-9268fdbd95fd
Vary: Accept-Encoding
Body:
<?xml version="1.0" encoding="UTF-8"?>
<Task
xmlns="http://www.vmware.com/vcloud/v1.5"
status="running"
startTime="2013-03-21T16:46:31.268+02:00"
serviceNamespace="com.vmware.vcloud"
operationName="vappConsolidateVm"
operation="Consolidating Virtual Machine debian(2c02ee20-8ec8-42c2-b010-1aa2f9041827)"
expiryTime="2013-06-19T16:46:31.268+03:00"
cancelRequested="false"
name="task"
id="urn:vcloud:task:fef228a2-e424-437e-92f5-9268fdbd95fd"
type="application/vnd.vmware.vcloud.task+xml"
href="https://vcloud.example.com/api/task/fef228a2-e424-437e-92f5-9268fdbd95fd"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.vmware.com/vcloud/v1.5 http://vcloud.example.com/api/v1.5/schema/master.xsd">
<Link
rel="task:cancel"
href="https://vcloud.example.com/api/task/fef228a2-e424-437e-92f5-9268fdbd95fd/action/cancel"/>
<Owner
type="application/vnd.vmware.vcloud.vm+xml"
name="debian"
href="https://vcloud.example.com/api/vApp/vm-2c02ee20-8ec8-42c2-b010-1aa2f9041827"/>
<User
type="application/vnd.vmware.admin.user+xml"
name="system"
href="https://vcloud.example.com/api/admin/user/4b36181e-b32d-456e-ad94-8e0a568b1346"/>
<Organization
type="application/vnd.vmware.vcloud.org+xml"
name="Default"
href="https://vcloud.example.com/api/org/710affad-0212-4e55-b6ae-4818d6e9166e"/>
<Details/>
</Task>