CreateDBInstanceReplication - 创建复制通道

更新时间:
复制为 MD 格式

调试

您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

授权信息

当前API暂无授权信息透出。

请求参数

名称类型必填描述示例值
RegionIdstring

实例所在地域 ID。

cn-hangzhou
DbInstanceIdstring

实例 ID。可调用 DescribeDBInstances 获取。

rm-bp1234567890abcdef
ChannelNamestring

复制通道名称,用于标识复制链路。

replication-channel-001
MasterHoststring

主数据库主机地址,支持 IP 或域名。

192.168.1.100
MasterPortinteger

主数据库端口号,通常为 3306(MySQL)

3306
MasterUserstring

主数据库用户名,用于建立复制连接。

repl_user
MasterPasswordstring

主数据库密码,用于验证复制用户,需要提前经过 Base64 编码。

U2VjdXJlUGFzczEyMyE=

返回参数

名称类型描述示例值
object

Schema of Response

RequestIdstring

Id of the request

76364A52-E0AB-5CC8-9818-CF1DC482C092

示例

正常返回示例

JSON格式

{
  "RequestId": "76364A52-E0AB-5CC8-9818-CF1DC482C092"
}

错误码

HTTP status code错误码错误信息描述
400InvalidReplicationChannel.DuplicateSpecified replication channel already exists.指定的复制链路已存在。
400InvalidReplicationChannelName.ForbidSpecified replication channel name is forbidden (reserved for internal use).指定的复制链路仅供内部使用。
400MissingReplicationParamMissing required parameters for replication operation: MasterHost, MasterPort, MasterUser, MasterPassword.缺少必要的复制相关参数
400InvalidMasterPort.FormatSpecified MasterPort format is not valid.指定的MasterPort参数不合法
400InvalidDBInstanceEngineType.Formatthe DB instance engine type does not support this operation.DB实例引擎类型不支持此操作。
403IncorrectDBInstanceTypeCurrent DB instance type does not support this operation.操作失败,该实例状态下不支持此操作。

访问错误中心查看更多错误码。

变更历史

变更时间变更内容概要操作
2026-03-18OpenAPI 错误码发生变更查看变更详情
2026-02-26新增 OpenAPI查看变更详情