云数据库 TaurusDB-设置自动变配:请求示例

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

请求示例

设置自动变配。

PUT https://{endpoint}/v3/97b026aa9cc4417888c14c84a1ad9860/instances/61a4ea66210545909d74a05c27a7179ein07/auto-scaling/policy{  "enlarge_threshold" : 50,  "max_flavor" : "gaussdb.mysql.large.x86.4",  "max_read_only_count" : 2,  "monitor_cycle" : 300,  "read_only_weight" : 10,  "reduce_enabled" : false,  "scaling_strategy" : {    "flavor_switch" : "ON",    "read_only_switch" : "ON"  },  "silence_cycle" : 300,  "status" : "ON"}
support.huaweicloud.com/api-gaussdbformysql/UpdateAutoScalingPolicy.html