Switches or rolls back the task that migrates data from ApsaraDB for RDS to Apsara PolarDB.
- Migrate data from ApsaraDB for RDS to Apsara PolarDB.
- Roll back data migration from Apsara PolarDB to ApsaraDB for RDS.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | No | ModifyDBClusterMigration |
The operation that you want to perform. Set the value to ModifyDBClusterMigration. |
DBClusterId | String | Yes | pc-************** |
The ID of the Apsara PolarDB cluster. |
NewMasterInstanceId | String | Yes | pc-************** |
The ID of the new instance or new cluster. Valid values:
|
SourceRDSDBInstanceId | String | Yes | rm-************ |
The ID of the source ApsaraDB for RDS instance. |
RegionId | String | No | cn-hangzhou |
The region ID of the cluster. |
SwapConnectionString | String | No | false |
Specifies whether to interchange the endpoints of the instances. Valid values:
Default value: false. |
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
RequestId | String | A1B303A5-653F-4AEE-A598-023FF9****** |
The ID of the request. |
Examples
Sample request
http(s)://polardb.aliyuncs.com/? Action=ModifyDBClusterMigration
&DBClusterId=pc-**************
&NewMasterInstanceId=pc-**************
&SourceRDSDBInstanceId=rm-************
&<Common request parameters>
Sample success responses
XML
format
<ModifyDBClusterMigrationResponse>
<RequestId>A1B303A5-653F-4AEE-A598-023FF9******</RequestId>
</ModifyDBClusterMigrationResponse>
JSON
format
{
"RequestId": "A1B303A5-653F-4AEE-A598-023FF9******"
}
Error codes
For a list of error codes, visit the API Error Center.