Set the server's role in the grid for controller high-availability
/api/v1/srv/set?srv=srv&role=role&vdc=controller-name
Name of the server
Server's HA role. Can be 'primary', 'secondary' or 'none'
Name of the target virtual data center
Server's High Availability role. May be one of the following:
Server that is currently running the CA AppLogic® grid controller
Server that may run the CA AppLogic® grid controller in case of a controller server failure
Server will never run the CA AppLogic® grid controller and does not participate in controller HA
Enable/disable network HA for the server (both external and backbone)
Enable/disable network HA on the backbone network
Enable/disable network HA on the external network
specify which switch is active for the backbone network
Specify which switch is active for the external network
Name of the hypervisor
Hypervisor license key
Enable/disable NCQ
asynchronous
GET
Set role for srv1 to secondary.
GET http://192.168.123.200/api/v1/srv/set?srv=srv1&role=secondary&vdc=mygrid
<opt></opt>
{}
Entity vdc mygrid not found - A VDC name was specified that is not configured in the WS_API application.
Missing required arguments (role). - Argument role=ha-role was not specified.
Missing required arguments (srv). - Argument srv=srv-name was not specified.
Power on a server
/api/v1/srv/power_on?srv=srv&vdc=controller-name
Name of the server
Power all servers on. Exclusive of the srv argument.
Name of the target virtual data center
asynchronous
GET
Power on srv1.
GET http://192.168.123.200/api/v1/srv/power_on?srv=srv1&vdc=mygrid
<job>be805915-76b2-48c8-b8a0-b881cca66da7</job>
{
"job" : "be805915-76b2-48c8-b8a0-b881cca66da7"
}
Entity vdc mygrid not found - A VDC name was specified that is not configured in the WS_API application.
Only valid when "Power Control" is enabled
Power off a server
/api/v1/srv/power_off?srv=srv&vdc=controller-name
Name of the server
Power all servers off. Exclusive of the srv argument.
Name of the target virtual data center
Reason why the server is being rebooted.
asynchronous
GET
Power off srv1.
GET http://192.168.123.200/api/v1/srv/power_off?srv=srv1&vdc=mygrid
<job>be805915-76b2-48c8-b8a0-b881cca66da8</job>
{
"job" : "be805915-76b2-48c8-b8a0-b881cca66da8"
}
Entity vdc mygrid not found - A VDC name was specified that is not configured in the WS_API application.
Only valid when "Power Control" is enabled.
|
Copyright © 2012 CA.
All rights reserved.
|
|