Skip to main content
NetApp Knowledge Base

Is it possible to schedule the power off and on of an CVO using RestAPI calls?

Views:
42
Visibility:
Public
Votes:
0
Category:
cloud-volumes-ontap-cvo
Specialty:
cloud
Last Updated:

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 and VsaWorkingEnvironment-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"

 

NetApp provides no representations or warranties regarding the accuracy or reliability or serviceability of any information or recommendations provided in this publication or with respect to any results that may be obtained by the use of the information or observance of any recommendations provided herein. The information in this document is distributed AS IS and the use of this information or the implementation of any recommendations or techniques herein is a customer's responsibility and depends on the customer's ability to evaluate and integrate them into the customer's operational environment. This document and the information contained herein may be used solely in connection with the NetApp products discussed in this document.