Previous Topic: list_map Method (srv Object)Next Topic: shutdown Method (srv Object)


reboot Method (srv Object)
Description

Reboot a server

Syntax
/api/v1/srv/reboot?srv=srv&vdc=controller-name 
Arguments
srv

Name of the server

vdc

Name of the target virtual data center

Options
reason

Reason why the server is being rebooted.

Transaction Type

asynchronous

Request Type

GET

Examples

Reboot srv1.

GET http://192.168.123.200/api/v1/srv/reboot?srv=srv1&vdc=mygrid 
GET http://aux/api/v1/srv/reboot?srv=srv1&reason=stuck%20mount&vdc=mygrid
Sample Output
XML:
<opt></opt>
JSON:
{}
HTTP Error Codes
404

Entity vdc mygrid not found - A VDC name was specified that is not configured in the WS_API application.