You can call this operation to migrate data from an ApsaraDB RDS for MySQL instance to a POLARDB for MySQL instance or roll back data migration.

  • Migrates data from RDS to POLARDB before data migration.
  • Rolls back data from POLARDB to RDS after data migration.

For more information, seeUpgrade RDS for MySQL to POLARDB for MySQL with one click.

Before you call this operation, ensure that a one-click upgrade task has been created for the cluster. You can call the CreateDBCluster operation to create a one-click upgrade task. Set the CreationOption parameter to MigrationFromRDS.


OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
DBClusterId String Yes pc-bpxxxxxxx

The ID of the ApsaraDB for POLARDB cluster.

NewMasterInstanceId String Yes pc-bpxxxxxxx

The ID of the primary destination instance.

  • Enter the POLARDB cluster ID if the data is not migrated.
  • Enter the RDS instance ID if the data is migrated.
SourceRDSDBInstanceId String Yes rm-bpxxxxxxx

The ID of the ApsaraDB for RDS instance.

AccessKeyId String No key-test

The AccessKey ID provided to you by Alibaba Cloud.

Action String No ModifyDBClusterMigration

The operation that you want to perform. Set the value to ModifyDBClusterMigration.

Response parameters

Parameter Type Example Description
RequestId String A1B303A5-653F-4AEE-A598-023FF966C1E0

The ID of the request.


Sample requests

http(s)://[Endpoint]/? Action=ModifyDBClusterMigration
&<Common request parameters>

Sample success responses

XML format


JSON format


Error codes

For a list of error codes, visit the API Error Center.