1.0

Table Of Contents
vCloud API Programming Guide
84 VMware, Inc.
Shut Down a vApp or Virtual Machine
AshutdownrequesttoavAppURLshutsdownallofthevirtualmachinesinthevApp,asspecifiedinits
ovf:StartupSectionelement.
AshutdownrequesttoavirtualmachineURLshutsdownthespecifiedvirtualmachine.
Example 5-26. Shut Down a vApp or Virtual Machine
RequesttoshutdownavApp:
POST http://vcloud.example.com/api/v1.0/vApp/vapp-7/power/action/shutdown
RequesttoshutdownaVm:
POST http://vcloud.example.com/api/v1.0/vApp/vm-5/power/action/shutdown
Response:
204 No Content
Reboot a vApp or Virtual Machine
ArebootrequesttoavAppURLrebootsallofthevirtualmachinesinthevApp,asspecifiedinits
ovf:StartupSectionelement.
ArebootrequesttoavirtualmachineURLrebootsthespecifiedvirtualmachine.
Example 5-27. Reboot a vApp or Virtual Machine
RequesttorebootavApp:
POST http://vcloud.example.com/api/v1.0/vApp/vapp-7/power/action/reboot
RequesttorebootaVm:
POST http://vcloud.example.com/api/v1.0/vApp/vm-5/power/action/reboot
Response:
204 No Content
NOTEBecausethisrequestsendsasignaltotheguestOS,thevCloudAPIcannottracktheprogressorverify
theresultoftherequestedoperation.
NOTEBecausethisrequestsendsasignaltotheguestOS,thevCloudAPIcannottracktheprogressorverify
theresultoftherequestedoperation.