Queries the migration status of a PolarDB cluster.
Operation description
-
You can use this operation to query the status of a one-click migration from an ApsaraDB RDS for MySQL instance to a PolarDB for MySQL cluster. For more information, see Upgrade an ApsaraDB RDS for MySQL instance to PolarDB for MySQL.
-
Before you call this operation, you must create a one-click upgrade task for the cluster by calling the CreateDBCluster operation and setting the CreationOption parameter to MigrationFromRDS.
Try it now

RAM authorization
Action | Access level | Resource type | Condition key | Dependent action |
polardb:DescribeDBClusterMigration | get | *dbcluster
| None | None |
Request parameters
Parameter | Type | Required | Description | Example |
DBClusterId | string | Yes | The cluster ID. | pc-************** |
Response elements
Element | Type | Description | Example |
object | |||
DBClusterEndpointList | array<object> | The details of the PolarDB endpoints. | |
array<object> | |||
AddressItems | array<object> | The details of the connection strings. | |
object | |||
VSwitchId | string | The ID of the virtual switch. | vsw-********** |
ConnectionString | string | The connection string. | pc-**************.rwlb.rds.aliyuncs.com |
NetType | string | The network type of the endpoint. Valid values:
| Private |
Port | string | The port. | 3306 |
VPCId | string | The ID of the virtual private cloud (VPC). | vpc-********** |
IPAddress | string | The IP address. | 192.***.***.10 |
SSLEnabled | string | Indicates whether Secure Sockets Layer (SSL) encryption is enabled. Valid values:
| Enabled |
DBEndpointId | string | The endpoint ID. | pe-*********** |
EndpointType | string | The type of the endpoint. Valid values:
| Cluster |
ReadWriteMode | string | The read/write mode. Valid values:
| ReadOnly |
Comment | string | The comments on the migration exception. If no exception occurs during the migration, an empty value is returned. | test |
RequestId | string | The request ID. | F2A9EFA7-915F-4572-8299-85A307****** |
ExpiredTime | string | The time when the replication relationship between the ApsaraDB RDS instance and the PolarDB cluster expires. The time is in the | 2020-06-17T01:56:36Z |
DBClusterId | string | The cluster ID. | pc-**************** |
Topologies | string | The data synchronization relationship. Valid values:
| RDS2POLARDB |
RdsReadWriteMode | string | The read/write mode of the source ApsaraDB RDS instance. Valid values:
| rw |
SourceRDSDBInstanceId | string | The ID of the source ApsaraDB RDS instance. | rm-************ |
DBClusterReadWriteMode | string | The read/write mode of the cluster. Valid values:
| ro |
DelayedSeconds | integer | The replication delay between the ApsaraDB RDS instance and the PolarDB cluster, in seconds. | 0 |
MigrationStatus | string | The migration status of the PolarDB cluster. Valid values:
| RDS2POLARDB_SYNCING |
DtsInstanceId | string | The ID of the sync task. | dts**********618bs |
RdsEndpointList | array<object> | The details of the ApsaraDB RDS endpoints. | |
array<object> | |||
AddressItems | array<object> | The details of the connection strings. | |
object | |||
VSwitchId | string | The ID of the virtual switch. | vsw-************** |
ConnectionString | string | The connection string. | rm-***********.mysql.rds.aliyuncs.com |
NetType | string | The network type of the endpoint. Valid values:
| Private |
Port | string | The port. | 3306 |
VPCId | string | The ID of the VPC. | vpc-************ |
IPAddress | string | The IP address. | 172.***.***.173 |
SSLEnabled | string | Indicates whether SSL encryption is enabled. Valid values:
| Enabled |
DBEndpointId | string | The endpoint ID. | rm-************-normal |
EndpointType | string | The type of the endpoint. Valid values:
| Normal |
CustinsType | string | The instance type. | ReadOnly Maxscale Primary |
SrcDbType | string | The type of the source database. Valid values:
| PolarDBMySQL |
Examples
Success response
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": "ReadOnly\nMaxscale\nPrimary" } ], "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. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.