云数据库 TaurusDB-查询自动变配:响应示例

时间:2025-02-12 14:58:07

响应示例

状态码: 200

Success.

  • 自动变配开启时查询自动变配。

    {  "id" : "26d8e193-1ea0-4adb-89d0-d1343399d0e7",  "instance_id" : "41ff7519e22d44eea6066615fa5b17c7in07",  "instance_name" : "gauss-test-1",  "status" : "ON",  "monitor_cycle" : 300,  "silence_cycle" : 300,  "enlarge_threshold" : 50,  "max_flavor" : "gaussdb.mysql.large.x86.4",  "reduce_enabled" : false,  "min_flavor" : "gaussdb.mysql.medium.x86.4",  "silence_start_at" : "2023-08-31T08:59:09+0000",  "scaling_strategy" : {    "flavor_switch" : "ON",    "read_only_switch" : "ON"  },  "max_read_only_count" : 2,  "min_read_only_count" : 1,  "read_only_weight" : 10}
  • 自动变配关闭时查询自动变配。

    {  "id" : null,  "instance_id" : "41ff7519e22d44eea6066615fa5b17c7in07",  "instance_name" : "gauss-test-1",  "status" : "OFF",  "monitor_cycle" : null,  "silence_cycle" : null,  "enlarge_threshold" : null,  "max_flavor" : null,  "reduce_enabled" : null,  "min_flavor" : null,  "silence_start_at" : "",  "scaling_strategy" : {    "flavor_switch" : "",    "read_only_switch" : ""  },  "max_read_only_count" : null,  "min_read_only_count" : null,  "read_only_weight" : null}
support.huaweicloud.com/api-gaussdbformysql/ShowAutoScalingPolicy.html