推特 阿里云技术文档正文

设置读策略_数据库管理类 API_2017-10-16版本_API参考_分布式关系型数据库 DRDS

admin 阿里云技术文档 2020-02-11 197 0
阿里云服务器优惠

设置读策略

功能描述

设置 DRDS 中主 RDS 实例和只读 RDS 实例的读策略。

请求参数

参数名 类型 是否必须 说明
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
版权声明

本文仅代表作者观点,不代表本站立场。
本文系作者授权发表,未经许可,不得转载。

评论

-----