云数据库 RDS-设置读写分离路由模式:请求示例

时间:2024-11-08 17:37:48

请求示例

设置读写分离路由模式。

POST https://{endpoint}/v3/23a50154cf494ec9ad6883979a12db0a/instances/ba0fd7c13cca4655820e0f858d5d467bin01/proxy/4e2a0c70f70f4807940db73a30b5b522po01/route-mode
{ 
   "master_weight" : 0, 
   "readonly_instances" : [ { 
     "instance_id" : "2edc88e921bb4129bb4d9b76be66811dno07", 
     "weight" : 1 
   } ], 
   "route_mode" : 2 
 }
support.huaweicloud.com/api-rds/rds_11_0036.html