VMware Cloud Director API - POST-DiscardVAppState

VMware Cloud Director API - POST-DiscardVAppState

POST /vApp/{id}/action/discardSuspendedState

Operation:
POST /vApp/{id}/action/discardSuspendedState
Description:
Discard suspended state of a vApp or VM.

Discarding the suspended state of a vApp discards the suspended state of all VMs it contains.

Since:
0.9
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/vapp-6943025b-dd0d-4b3b-bf7a-e23135a253a7/action/discardSuspendedState

Headers:
x-vcloud-authorization: ICoTzewXTOpRlM6gpGqRU4pYUEH567upswoaaPvs87Y=

Body:
Response
HTTP/1.1 202 Accepted

Headers:
Content-Length: 1338
Content-Type: application/vnd.vmware.vcloud.task+xml; version=5.5
Location: https://vcloud.example.com/api/task/14135ffc-1156-48ee-93e3-8411b58c1d1a
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-29T10:05:37.276+02:00"
    serviceNamespace="com.vmware.vcloud"
    operationName="vappDiscardSuspendedState"
    operation="Discarding State Virtual Application vApp_linux(6943025b-dd0d-4b3b-bf7a-e23135a253a7)"
    expiryTime="2013-06-27T10:05:37.276+03:00"
    cancelRequested="false"
    name="task"
    id="urn:vcloud:task:14135ffc-1156-48ee-93e3-8411b58c1d1a"
    type="application/vnd.vmware.vcloud.task+xml"
    href="https://vcloud.example.com/api/task/14135ffc-1156-48ee-93e3-8411b58c1d1a"
    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/14135ffc-1156-48ee-93e3-8411b58c1d1a/action/cancel"/>
    <Owner
        type="application/vnd.vmware.vcloud.vApp+xml"
        name="vApp_linux"
        href="https://vcloud.example.com/api/vApp/vapp-6943025b-dd0d-4b3b-bf7a-e23135a253a7"/>
    <User
        type="application/vnd.vmware.admin.user+xml"
        name="system"
        href="https://vcloud.example.com/api/admin/user/8fa42d37-5eda-43ed-ad8a-f005c625a96c"/>
    <Organization
        type="application/vnd.vmware.vcloud.org+xml"
        name="Default"
        href="https://vcloud.example.com/api/org/b5d81989-f274-4e55-9005-b53b48a158d1"/>
    <Details/>
</Task>