VMware Cloud Director API - POST-ConsolidateVm-vApp
POST /vApp/{id}/action/consolidate
- Operation:
- POST /vApp/{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/vApp/vm-78c3771e-465e-496d-9bfe-c6ea6a1de79e/action/consolidate
Headers:
x-vcloud-authorization: tkgjgQtIS3veOl7Yf6fKBo9uty0vBe2f64jrT4Ogaz4=
Body:
- Response
-
HTTP/1.1 202 Accepted
Headers:
Content-Length: 1307
Content-Type: application/vnd.vmware.vcloud.task+xml; version=5.5
Location: https://vcloud.example.com/api/task/3bfe6373-ef21-449a-9730-3fcb84145586
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:40:01.896+02:00"
serviceNamespace="com.vmware.vcloud"
operationName="vappConsolidateVm"
operation="Consolidating Virtual Machine 2hdd(78c3771e-465e-496d-9bfe-c6ea6a1de79e)"
expiryTime="2013-06-19T16:40:01.896+03:00"
cancelRequested="false"
name="task"
id="urn:vcloud:task:3bfe6373-ef21-449a-9730-3fcb84145586"
type="application/vnd.vmware.vcloud.task+xml"
href="https://vcloud.example.com/api/task/3bfe6373-ef21-449a-9730-3fcb84145586"
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/3bfe6373-ef21-449a-9730-3fcb84145586/action/cancel"/>
<Owner
type="application/vnd.vmware.vcloud.vm+xml"
name="2hdd"
href="https://vcloud.example.com/api/vApp/vm-78c3771e-465e-496d-9bfe-c6ea6a1de79e"/>
<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>