Is it possible to schedule the power off and on of an CVO using RestAPI calls?
Applies to
- Cloud Volumes ONTAP (CVO)
- BlueXP
- RestAPI
Answer
- One possibility is to schedule automatic shutdowns of Cloud Volumes ONTAP from BlueXP GUI interface
- Another method is to use RestAPI POST calls to the following endpoints using
ConnectorIP
andVsaWorkingEnvironment-ID
:
http://ConnectorIP:80/occm/api/azure/vsa/working-environments/VsaWorkingEnvironment-ID/start
http://ConnectorIP:80/occm/api/azure/vsa/working-environments/VsaWorkingEnvironment-ID/stop
Example:
curl -u admin -ik -X POST "http://172.167.193.250:80/occm/api/azure/vsa/working-environments/VsaWorkingEnvironment-testabc/start" -H "accept: application/json"
curl -u admin -ik -X POST "http://172.167.193.250:80/occm/api/azure/vsa/working-environments/VsaWorkingEnvironment-testabc/stop" -H "accept: application/json"