Queries the migration status of PolarDB clusters.
Operation description
- You can call this operation to query the status of data migration from an ApsaraDB RDS instance to a PolarDB cluster. For more information, see Upgrade ApsaraDB RDS for MySQL to PolarDB for MySQL with one click.
- Before you call this operation, make sure that a one-click upgrade task has been created for the cluster. You can call the CreateDBCluster operation to create an upgrade task. Set the CreationOption parameter to MigrationFromRDS.
Debugging
Authorization information
There is currently no authorization information disclosed in the API.
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
DBClusterId | string | Yes | The ID of the cluster. | pc-************** |
Response parameters
Examples
Sample success responses
JSON
format
{
"DBClusterEndpointList": [
{
"AddressItems": [
{
"VSwitchId": "vsw-**********",
"ConnectionString": "pc-**************.rwlb.rds.aliyuncs.com",
"NetType": "Private",
"Port": "3306",
"VPCId": "vpc-**********",
"IPAddress": "192.***.***.10",
"SSLEnabled": "Enabled"
}
],
"DBEndpointId": "pe-***********",
"EndpointType": "Cluster",
"ReadWriteMode": "ReadOnly"
}
],
"Comment": "test",
"RequestId": "F2A9EFA7-915F-4572-8299-85A307******",
"ExpiredTime": "2020-06-17T01:56:36Z",
"DBClusterId": "pc-****************",
"Topologies": "RDS2POLARDB",
"RdsReadWriteMode": "rw",
"SourceRDSDBInstanceId": "rm-************",
"DBClusterReadWriteMode": "ro",
"DelayedSeconds": 0,
"MigrationStatus": "RDS2POLARDB_SYNCING",
"DtsInstanceId": "dts**********618bs",
"RdsEndpointList": [
{
"AddressItems": [
{
"VSwitchId": "vsw-**************",
"ConnectionString": "rm-***********.mysql.rds.aliyuncs.com",
"NetType": "Private",
"Port": "3306",
"VPCId": "vpc-************",
"IPAddress": "172.***.***.173",
"SSLEnabled": "Enabled"
}
],
"DBEndpointId": "rm-************-normal",
"EndpointType": "Normal",
"CustinsType": ""
}
],
"SrcDbType": "PolarDBMySQL"
}
Error codes
HTTP status code | Error code | Error message | Description |
---|---|---|---|
404 | InvalidDBClusterId.NotFound | The DBClusterId provided does not exist in our records. | The specified DBClusterId parameter does not exist in the current record. |
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|---|---|
2023-12-22 | The Error code has changed. The response structure of the API has changed | View Change Details |
2022-09-08 | The Error code has changed. The response structure of the API has changed | View Change Details |
2022-07-06 | The response structure of the API has changed | View Change Details |