Power cycle a server
/api/v1/srv/power_cycle?srv=srv&vdc=controller-name
Name of the server
Power cycle all servers. Exclusive of the srv argument.
Name of the target virtual data center
asynchronous
GET
Power cycle srv1.
GET http://192.168.123.200/api/v1/srv/power_cycle?srv=srv1&vdc=mygrid
<job>be805915-76b2-48c8-b8a0-b881cca66da9</job>
{
"job" : "be805915-76b2-48c8-b8a0-b881cca66da9"
}
Entity vdc mygrid not found - A VDC name was specified that is not configured in the WS_API application.
Missing required arguments (srv). - Argument srv=srv-name was not specified.
Only valid when "Power Control" is enabled
Identify server and NICs by having the specified NIC on the server blink/flash its LED for a minute.
/api/v1/srv/identify?srv=server&nic=nic&vdc=controller-name
Name of the server
Name of the NIC to blink
Name of the target virtual data center
asynchronous
GET
Blink eth0 on srv1.
GET http://192.168.123.200/api/v1/srv/identify?srv=srv1&nic=eth0&vdc=mygrid
<job>be805915-76b2-48c8-b8a0-b881cca66da6</job>
{
"job" : "be805915-76b2-48c8-b8a0-b881cca66da6"
}
Entity vdc mygrid not found - A VDC name was specified that is not configured in the WS_API application.
Missing required arguments (srv,nic) - Argument srv=srv and nic=nic missing
Missing required arguments (srv) - Argument srv=srv missing
Missing required arguments (nic) - Argument nic=nic missing
To get the status of job, issue a /api/v1/job/info request with the job_id returned above as the argument. For more information about how to obtain the job status, refer to the job object.
|
Copyright © 2012 CA.
All rights reserved.
|
|