5.5

Table Of Contents
Table 51. Summary of vApp and Virtual Machine Operations Requests (Continued)
Operation Request Request Body Response
Get a Screen Thumbnail for
a Virtual Machine
GET Vm-URL/screen None Returns a screen thumbnail
(Content-type: image/png) if
one is available. Otherwise
returns null (Content-
Length: 0).
Get a Screen Ticket for a
Virtual Machine
POST Vm-
URL/screen/action/acquire
Ticket
None
ScreenTicket
Attach an independent disk
to a virtual machine.
POST Vm-
URL/disk/action/attach
DiskAttachOrDetachPara
ms
Task
Detach an independent disk
from a virtual machine.
POST Vm-
URL/disk/action/detach
DiskAttachOrDetachPara
ms
Task
Create snapshots of all
virtual machines in a vApp.
POST API-
URL/vApp/vapp-id/
action/createSnapshot
CreateSnapshotParams Task
Remove snapshots of all
virtual machines in a vApp.
POST API-
URL/vApp/vapp-id/
action/removeAllSnapshots
None
Task
Revert all virtual machines
in a vApp to their current
snapshots.
POST API-
URL/vApp/vapp-id/
action/revertToCurrentSna
pshot
None
Task
Retrieve information about
vApp snapshots.
GET API-URL/vApp/vapp-
id/snapshotSection
None
SnapshotSection
Validate the storage profile
compliance of a virtual
machine.
POST API-URL/vApp/vm-
id/action/checkCompliance
None
Task
Retrieve a virtual machine
storage profile validation
report.
GET API-URL/vApp/vm-
id/complianceResult
None
ComplianceResult
Create a vApp From a Template
An instantiateVAppTemplate request creates a vApp from a vApp template.
To create a vApp from a vApp template, you must bind the template's abstract resource requirements, such
as network connections, storage resources, memory, and CPU capacity, to appropriate resources in the
target VDC. This binding operation is called instantiation.
For an example of a simple instantiation request, see “Deploy the vApp,” on page 31. You can also specify
additional parameters as part of instantiation.
Template contents that might influence composition of the request body include the following sections:
n
A NetworkConnectionSection that specifies network connection details for a virtual machine. Unless
you want to create a vApp in which none of the virtual machines are connected to a network, your
instantiation parameters must include at least one NetworkConfigSection that defines a vApp network,
and that section must include a NetworkConfig element whose networkName attribute value matches the
value of the network attribute of the NetworkConnection of each Vm in the template. If this attribute has
the value none or is missing, the Vm can connect to any network. If the template contains Vm elements that
specify different names for their network connections, you must create a vApp network for each.
Chapter 5 Deploying and Operating vApps
VMware, Inc. 93