Suspend A Vapp Or Virtual Machine; Discard The Suspended State Of A Vapp Or Virtual Machine - VMware VCLOUD API 1.0 - API Programming Manual

Table of Contents

Advertisement

Response:
202 Accepted
Content-Type: application/vnd.vmware.vcloud.task+xml
...
<Task ...>
...
</Task>

Suspend a vApp or Virtual Machine

A suspend request to a vApp URL suspends all of the virtual machines in the vApp, as specified in its 
ovf:StartupSection element.
A suspend request to a virtual machine URL suspends the specified virtual machine.
Example 5-24. Suspend a vApp or Virtual Machine
Request to suspend a vApp:
POST http://vcloud.example.com/api/v1.0/vApp/vapp-7/power/action/suspend
Request to suspend a Vm:
POST http://vcloud.example.com/api/v1.0/vApp/vm-5/power/action/suspend
Response:
202 Accepted
Content-Type: application/vnd.vmware.vcloud.task+xml
...
<Task ...>
...
</Task>

Discard the Suspended State of a vApp or Virtual Machine

A discardSuspendedState request to a vApp URL discards the suspended state of all of the virtual machines 
in the vApp, as specified in its ovf:StartupSection element.
A discardSuspendedState request to a virtual machine URL discards the suspended state of the specified 
virtual machine.
You cannot resume a suspended vApp after its suspended state has been discarded.
Example 5-25. Discard the Suspended State of a vApp or Virtual Machine
Request to discard the suspended state of a vApp:
POST http://vcloud.example.com/api/v1.0/vApp/vapp-7/action/discardSuspendedState
Request to discard the suspended state of a Vm:
POST http://vcloud.example.com/api/v1.0/vApp/vm-5/action/discardSuspendedState
Response:
202 Accepted
Content-Type: application/vnd.vmware.vcloud.task+xml
...
<Task ...>
...
</Task>
VMware, Inc.
Chapter 5 Datacenter Operations
83

Advertisement

Table of Contents
loading

Table of Contents