MigrateAvailableZone
Migrates the zone of a MongoDB instance.
Operation description
The MigrateAvailableZone operation does not support standalone instances. It is applicable to active cloud disk instances and local disk instances.
The transparent data encryption (TDE) feature is not enabled for the instance.
The destination zone and the current zone of the instance are in the same region.
If the instance is deployed in a VPC, make sure that a vSwitch is created in the destination zone before you migrate the zone. For more information, see Create a vSwitch.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
dds:MigrateAvailableZone |
update |
*Instance
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| DBInstanceId |
string |
Yes |
The instance ID. Note
If the network type of the instance is VPC, you must also specify the Vswitch parameter. |
dds-bp1ece71ff2f**** |
| ZoneId |
string |
Yes |
The ID of the destination zone. Note
|
cn-hangzhou-b |
| Vswitch |
string |
No |
The ID of the vSwitch in the destination zone. Note
This parameter is required when the network type of the instance is VPC. |
vsw-bp1buy0h9myt5i9e7**** |
| EffectiveTime |
string |
No |
The effective time for migrating the zone. The instance must be active. Valid values:
Default value: Immediately. |
Immediately |
| SecondaryZoneId |
string |
No |
The ID of destination secondary zone 1. |
cn-hangzhou-h |
| HiddenZoneId |
string |
No |
The ID of destination secondary zone 2. |
cn-shanghai-n |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
0FDDC511-7252-4A4A-ADDA-5CB1BF63**** |
Examples
Success response
JSON format
{
"RequestId": "0FDDC511-7252-4A4A-ADDA-5CB1BF63****"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidEffectiveTime.Malformed | Specified EffectiveTime is not valid. | |
| 400 | InsType.NotSupport | Specified instance type dose not support this operation. | The specified instance type does 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. | 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. | When the current instance is a VPC instance, the VSwitchId parameter cannot be empty. |
| 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. | |
| 400 | InvalidZoneParam | The target zone and source zone cannot be the same. | The destination zone cannot be the same as the original zone. |
| 400 | MigrateDBInstanceError | Error in migrating available area or changing your vpc network. Please submit the work order for processing. | An error occurred while migrating the zone or changing the VPC. Submit a ticket. |
| 400 | MinorVersionNotSupport | Instance's MinorVersion is not supported for this API. | This API does not support MinorVersion of instances. |
| 404 | InvalidDbInstanceId.NotFound | Specified instance does not exist. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.