请求参数
| 参数名 | 类型 | 是否必须 | 说明 |
| Action | String | 是 | 系统规定参数,取值:ModifyRdsReadWeight |
| DrdsInstanceId | String | 是 | DRDS 实例 ID |
| DbName | String | 是 | 数据库名 |
| InstanceNames | String | 是 | RDS 的实例名,实例之间用半角逗号分隔,其中必须包含 RDS 主实例 |
| Weights | String | 是 | 各个 RDS 之间的读权重,为数字,各个值之间用半角逗号分隔,且数字总和为100 |
返回值
无公共返回值
错误码
| 错误码 | 报错信息 | 错误描述 | HTTP 状态码 |
| InvalidDrdsInstanceId.NotFound | The DrdsInstanceId provided does not exist in our records. | 实例不存在 | 404 |
| InvalidDbName.NotFound | The Drds DbName provided does not exist in our records. | 数据库不存在 | 404 |
| InvalidParameter.Mismatch | The specified parameter does not match. | 参数错误 | 400 |
| InvalidAction.ConflictWithAnotherAction | The specified action conflict with another. | 与另一个操作冲突 | 400 |
| InvalidParameter.InvalidMainInstance | The specified main rds instance is invalid. | 主 RDS 实例无效 | 400 |
| InvalidParameter.IllegalWeightParameter | The specified parameter weight is invalid. | 权重参数无效 | 400 |
| InvalidParameter.InvalidRdsReadInstance_NotFound | The specified read rds instance not found. | 指定的只读实例不存在 | 404 |
| InvalidStatus.RdsReadInstance | The specified rds read instance is in wrong status. | 只读实例状态异常 | 400 |
| InvalidMainInstance.WeightNotFound | The specified main instance does not have weight configuration. | 只读实例没有配置权重 | 400 |