1.0

Table Of Contents
vCloud API Programming Guide
82 VMware, Inc.
ApowerOnrequesttoavApporvirtualmachinethatisundeployedforcesdeployment.
Example 5-21. Power On a vApp or Virtual Machine
RequesttopoweronavApp:
POST http://vcloud.example.com/api/v1.0/vApp/vapp-7/power/action/powerOn
Requesttopoweronavirtualmachine:
POST http://vcloud.example.com/api/v1.0/vApp/vm-5/power/action/powerOn
Response:
202 Accepted
Content-Type: application/vnd.vmware.vcloud.task+xml
...
<Task ... operation="Starting Virtual Application Linux FTP server (7) ...>
...
</Task>
Power Off a vApp or Virtual Machine
ApowerOffrequesttoavAppURLpowersoffallofthevirtualmachinesinthevApp,asspecifiedinits
ovf:StartupSectionelement.
ApowerOffrequesttoavirtualmachineURLpowersoffthespecifiedvirtualmachine.
Example 5-22. Power Off a vApp or Virtual Machine
RequesttopoweroffavApp:
POST http://vcloud.example.com/api/v1.0/vApp/vapp-7/power/action/powerOff
Requesttopoweroffavirtualmachine:
POST http://vcloud.example.com/api/v1.0/vApp/vm-5/power/action/powerOff
Response:
202 Accepted
...
Content-Type: application/vnd.vmware.vcloud.task+xml
<Task ...>
...
</Task>
Reset a vApp or Virtual Machine
AresetrequesttoavAppURLresetsallofthevirtualmachinesinthevApp,asspecifiedinits
ovf:StartupSectionelement.
AresetrequesttoavirtualmachineURLresetsthespecifiedvirtualmachine.
Example 5-23. Reset a vApp or Virtual Machine
RequesttoresetavApp:
POST http://vcloud.example.com/api/v1.0/vApp/vapp-7/power/action/reset
RequesttoresetaVm:
POST http://vcloud.example.com/api/v1.0/vApp/vm-5/power/action/reset