Previous Topic: enable Method (srv Object)Next Topic: set Method (srv Object)


disable Method (srv Object)
Description

Disable a server for scheduling

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

Name of the server

&all

Disable all servers. Exclusive of the srv argument.

vdc

Name of the target virtual data center

Transaction Type

synchronous

Request Type

GET

Examples

Disable srv1.

GET http://192.168.123.200/api/v1/srv/disable?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 disable server srv - it doesn't exist. An invalid server name was specified in the request.