跳转到主内容

是否可以使用 RestAPI 调用安排 CVO 的电源关闭和打开?

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

适用于

  • Cloud Volumes ONTAP (CVO)
  • BlueXP
  • RestAPI

回答

 

  • 一种可能性是从 BlueXP GUI 界面安排 Cloud Volumes ONTAP 的自动关闭
  • 另一种方法是使用 RestAPI POST 调用以下端点,使用ConnectorIP 和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


    示例: 
    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.