5.1

Table Of Contents
Response:
<?xml version="1.0" encoding="UTF-8"?>
<Task
...
operationName="vappCreateSnapshot"
... />
...
</Task>
After the snapshot is created, you can revert the vApp to the state captured in the snapshot.
POST https://vcloud.example.com/api/vApp/vapp-33/action/revertToCurrentSnapshot
You can also remove all snapshots.
POST https://vcloud.example.com/api/vApp/vapp-33/action/removeAllSnapshots
Neither of these requests has a request body. Both return a Task.
Operate a vApp
vApp and Vm elements include a number of action links. You can use these links to operate a vApp or one of its
virtual machines by making requests such as power on, suspend, power off, undeploy, and so on.
Only those action links that are valid for the vApp or virtual machine in its current state are returned. For
example, if a vApp is instantiated but not deployed, only the links for deploy and remove are returned. For a
vApp that is powered on, links for all actions except powerOn are returned. Some requests apply only to vApps,
some apply only to virtual machines (Vm objects), and some apply to both.
n
A request made to the power URL of a VApp invokes the requested operation on each of the virtual machines
in the Children element of the VApp, in the order specified in its ovf:StartupSection element. This element,
if present, specifies a start order and related properties for each member of a VirtualSystemCollection
(each Vm contained by the Children element). If the element is not present, all members are started up at
the same time. The same logic applies to shutdown, reboot, and similar operations.
n
A request made to the power URL of a Vm affects only that virtual machine.
n
See “Summary of vCloud API vApp and Virtual Machine Operations Requests,” on page 83 for details of
each request.
Prerequisites
Verify that you are logged in to the vCloud API as a system administrator or member of an organization in
the cloud.
Procedure
1 Retrieve the XML representation of the vApp to find the action links it contains.
Use a request like this one:
GET https://vcloud.example.com/api/vApp/vapp-7
2 POST a request to the URL that implements the desired action.
Many of these requests do not require a body.
The server takes the requested action and returns a Task element that tracks the progress of the request.
vCloud API Programming Guide
96 VMware, Inc.