云数据库 GEMINIDB-设置磁盘自动扩容策略:请求示例

时间:2023-11-22 09:18:50

请求示例

  • 开启磁盘自动扩容策略
    • URI样例
      POST https://gaussdb-nosql.cn-north-7.myhuaweicloud.com/v3/619d3e78f61b4be68bc5aa0b59edcf7b/instances/disk-auto-expansion 
    • 开启磁盘自动扩容策略,设置自动扩容阈值为90,扩容步长为10%,通过自动扩容所能达到的存储空间上限为600GB
      { 
        "instance_ids" : [ "93e4b3eda14349b1b870f72829bc3b9bin06" ], 
        "policy" : { 
          "threshold" : 90, 
          "step" : 10, 
          "size" : 600 
        } 
      }
  • 关闭磁盘自动扩容策略
    • URI样例
      POST https://gaussdb-nosql.cn-north-7.myhuaweicloud.com/v3/619d3e78f61b4be68bc5aa0b59edcf7b/instances/disk-auto-expansion
    • 关闭磁盘自动扩容策略
      { 
        "instance_ids" : [ "93e4b3eda14349b1b870f72829bc3b9bin06" ], 
        "switch_option":"off"
      }
support.huaweicloud.com/api-nosql/zh-cn_topic_0000001358516982.html