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


enable Method (srv Object)
Description

Enable a server for scheduling

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

Name of the server

&all

Enable all servers. Exclusive of the srv argument.

vdc

Name of the target virtual data center

Transaction Type

synchronous

Request Type

GET

Examples

Enable srv1.

GET http://192.168.123.200/api/v1/srv/enable?srv=srv1&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.

400.1

Missing required arguments (srv). - Argument srv=srv-name was not specified.

404.1

Entity not found - Failed to enable server srv - Failed to retrieve server information.