迁移MongoDB实例的可用区。
接口说明
- MigrateAvailableZone 接口适用于 MongoDB 4.2 及以下版本的副本集实例,分片集群实例,暂不支持单节点实例。
- 如果实例申请了公网连接地址,需要先调用 ReleasePublicNetworkAddress 接口释放公网连接地址。
- 实例未开启透明数据加密 TDE 功能。
- 迁移的目标可用区和当前实例的可用区处于同一地域。
- 专有网络的实例在操作迁移可用区之前,请确保目标可用区已创建相应的虚拟交换机。如需创建,请参见创建虚拟交换机。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
授权信息
当前API暂无授权信息透出。
请求参数
名称 | 类型 | 必填 | 描述 | 示例值 |
---|---|---|---|---|
DBInstanceId | string | 是 | 实例 ID。 说明
如果实例的网络类型为专有网络,您还需要传入 Vswitch 参数。
| dds-bp1ece71ff2f**** |
ZoneId | string | 是 | 迁移的目标可用区 ID。 说明
| cn-hangzhou-b |
Vswitch | string | 否 | 迁移的目标可用区虚拟交换机 ID。 说明
当实例的网络类型为专有网络时,需要配置该参数。
| vsw-bp1buy0h9myt5i9e7**** |
EffectiveTime | string | 否 | 迁移可用区的生效时间,取值:
默认为 Immediately。 | Immediately |
返回参数
示例
正常返回示例
JSON
格式
{
"RequestId": "0FDDC511-7252-4A4A-ADDA-5CB1BF63****"
}
错误码
HTTP status code | 错误码 | 错误信息 | 描述 |
---|---|---|---|
400 | InvalidEffectiveTime.Malformed | Specified EffectiveTime is not valid. | - |
400 | InsType.NotSupport | Specified instance type dose not support this operation. | - |
400 | IncorrectMasterDBInstanceState | The Master instance state does not support this operation. | - |
400 | NetworkTypeNotSupport | The network type does not support this operation. | 该网络类型不支持此操作。 |
400 | OperationDenied.LockMode | The operation is not permitted when the instance locked. | 当前实例已被锁定,无法执行该操作。 |
400 | InvalidIzNo.NotSupported | the Specified vpc Zone not supported. | - |
400 | IncorrectVswitchId | The specified parameter 'VSwitchId' is not valid. | - |
400 | InvalidRegion_Zone_NotFound | Specified Region does not exist in RDS. | - |
400 | VPCERROR.ALLOCATE_ERROR | Cannot Allocate the require vpcInstances. | - |
400 | ProxyError | The request processing has failed due to some unknown error, exception or failure. | - |
400 | DbInsertError | Database insert error. | - |
400 | UnsupportedDBTdeStatus | Specified DB TDEStatus does not support this operation. | 指定实例已开启TDE,不支持此操作 |
400 | InvalidZoneParam | The target zone and source zone cannot be the same. | 目标可用区不可以和原可用区一致 |
404 | InvalidDbInstanceId.NotFound | Specified instance does not exist. | 该实例不存在,原因可能是该实例已经释放,请刷新页面。 |
访问错误中心查看更多错误码。
变更历史
变更时间 | 变更内容概要 | 操作 |
---|---|---|
2024-04-08 | OpenAPI 错误码发生变更、OpenAPI 入参发生变更 | 查看变更详情 |
2024-03-13 | OpenAPI 错误码发生变更、OpenAPI 入参发生变更 | 查看变更详情 |
2023-07-13 | OpenAPI 错误码发生变更 | 查看变更详情 |