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.

Debugging

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.

Examples

Sample requests


http(s)://[Endpoint]/? Action=ModifyDBClusterMigration
&DBClusterId=pc-bpxxxxxxx
&NewMasterInstanceId=pc-bpxxxxxxx
&SourceRDSDBInstanceId=rm-bpxxxxxxx
&<Common request parameters>

Sample success responses

XML format

<ModifyDBClusterMigrationResponse>  
  <RequestId>A1B303A5-653F-4AEE-A598-023FF966C1E0</RequestId>
</ModifyDBClusterMigrationResponse>

JSON format

{
	"RequestId":"A1B303A5-653F-4AEE-A598-023FF966C1E0"
}

Error codes

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