Shut Down A Vapp Or Virtual Machine; Reboot A Vapp Or Virtual Machine - VMware VCLOUD API 1.0 - API Programming Manual

Table of Contents

Advertisement

vCloud API Programming Guide

Shut Down a vApp or Virtual Machine

A shutdown request to a vApp URL shuts down all of the virtual machines in the vApp, as specified in its 
ovf:StartupSection element.
A shutdown request to a virtual machine URL shuts down the specified virtual machine.
N
   Because this request sends a signal to the guest OS, the vCloud API cannot track the progress or verify 
OTE
the result of the requested operation.
Example 5-26. Shut Down a vApp or Virtual Machine
Request to shut down a vApp:
POST http://vcloud.example.com/api/v1.0/vApp/vapp-7/power/action/shutdown
Request to shut down a Vm:
POST http://vcloud.example.com/api/v1.0/vApp/vm-5/power/action/shutdown
Response:
204 No Content

Reboot a vApp or Virtual Machine

A reboot request to a vApp URL reboots all of the virtual machines in the vApp, as specified in its 
ovf:StartupSection element.
A reboot request to a virtual machine URL reboots the specified virtual machine.
N
   Because this request sends a signal to the guest OS, the vCloud API cannot track the progress or verify 
OTE
the result of the requested operation.
Example 5-27. Reboot a vApp or Virtual Machine
Request to reboot a vApp:
POST http://vcloud.example.com/api/v1.0/vApp/vapp-7/power/action/reboot
Request to reboot a Vm:
POST http://vcloud.example.com/api/v1.0/vApp/vm-5/power/action/reboot
Response:
204 No Content
84
VMware, Inc.

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the VCLOUD API 1.0 - API and is the answer not in the manual?

Questions and answers

Table of Contents