Cancels or completes CloseDBClusterMigration migration.

You can call this operation to migrate data from an apsaradb RDS for MySQL instance to a PolarDB for MySQL instance.

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
Action String No CloseDBClusterMigration

The parameter specified by the system. Value: CloseDBClusterMigration.

DBClusterId String Yes pc-bpxxxxxxx

The ID of the ApsaraDB for PolarDB cluster.

RegionId String No cn-hangzhou

The ID of the region, for example, cn-hangzhou.

ContinueEnableBinlog Boolean No true

Specifies whether to continue to enable binary logs. Valid values:

  • true: continues to enable binary logs.
  • false: disables binary logs.

Default value: true.

Note Disabling binlogging will restart the apsaradb for PolarDB cluster.

Response parameters

Parameter Type Example Description
RequestId String 3AA69096-757C-4647-B36C-29EBC27A8763

The ID of the request.

Examples

Sample request

http(s)://polardb.aliyuncs.com/? Action=CloseDBClusterMigration
&DBClusterId=pc-bpxxxxxxx
&<Common request parameters>

Sample success responses

XML format

<CloseDBClusterMigrationResponse>  
  <RequestId>3AA69096-757C-4647-B36C-29EBC27A8763</RequestId>
</CloseDBClusterMigrationResponse>

JSON format

{    
  "RequestId": "3AA69096-757C-4647-B36C-29EBC27A8763"
  }

Error codes

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