Queries the migration status of PolarDB clusters.
- 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 Create a PolarDB for MySQL cluster from an ApsaraDB RDS for MySQL instance.
- 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
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | DescribeDBClusterMigration |
The operation that you want to perform. Set the value to DescribeDBClusterMigration. |
DBClusterId | String | Yes | pc-************** |
The ID of the cluster. |
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
DBClusterEndpointList | Array of DBClusterEndpoint |
The endpoints of the PolarDB cluster. |
|
AddressItems | Array of Address |
Details about the endpoints. |
|
VSwitchId | String | vsw-********** |
The vSwitch ID of the cluster. |
ConnectionString | String | pc-**************.rwlb.rds.aliyuncs.com |
The endpoint of the cluster. |
NetType | String | Private |
The network type of the endpoint. Valid values:
|
Port | String | 3306 |
The port number of the cluster. |
VPCId | String | vpc-********** |
The VPC ID of the cluster. |
IPAddress | String | 192.***.***.10 |
The IP address of the cluster. |
SSLEnabled | String | Enabled |
Indicates whether SSL encryption is enabled. Valid values:
|
DBEndpointId | String | pe-*********** |
The ID of the endpoint. |
EndpointType | String | Cluster |
The type of the endpoint. Valid values:
|
Comment | String | test |
The description of a migration exception. If no exception occurs during the migration, an empty string is returned. |
RequestId | String | F2A9EFA7-915F-4572-8299-85A307****** |
The ID of the request. |
ExpiredTime | String | 2020-06-17T01:56:36Z |
The expiration time of the replication between ApsaraDB RDS and PolarDB. The time
is in the |
DBClusterId | String | pc-**************** |
The ID of the cluster. |
Topologies | String | RDS2POLARDB |
The synchronization direction. Valid values:
|
RdsReadWriteMode | String | rw |
The mode of the source ApsaraDB RDS instance. Valid values:
|
SourceRDSDBInstanceId | String | rm-************ |
The ID of the source ApsaraDB RDS instance. |
DBClusterReadWriteMode | String | ro |
The mode of the PolarDB cluster. Valid values:
|
DelayedSeconds | Integer | 0 |
The replication latency between the ApsaraDB RDS instance and the PolarDB cluster. Unit: seconds. |
MigrationStatus | String | RDS2POLARDB_SYNCING |
The migration state of the PolarDB cluster. Valid values:
|
DtsInstanceId | String | dts**********618bs |
The ID of the data synchronization task. |
RdsEndpointList | Array of RdsEndpoint |
The endpoints of the ApsaraDB RDS instance. |
|
AddressItems | Array of Address |
Details about the endpoints. |
|
VSwitchId | String | vsw-************** |
The vSwitch ID of the instance. |
ConnectionString | String | rm-***********.mysql.rds.aliyuncs.com |
The endpoint of the instance. |
NetType | String | Private |
The network type of the endpoint. Valid values:
|
Port | String | 3306 |
The port number of the instance. |
VPCId | String | vpc-************ |
The VPC ID of the instance. |
IPAddress | String | 172.***.***.173 |
The IP address of the instance. |
SSLEnabled | String | Enabled |
Indicates whether SSL encryption is enabled. Valid values:
|
DBEndpointId | String | rm-************-normal |
The ID of the endpoint. |
EndpointType | String | Normal |
The type of the endpoint. Valid values:
|
SrcDbType | String | PolarDBMySQL |
The type of the source database. Valid values:
|
Examples
Sample requests
http(s)://polardb.aliyuncs.com/?Action=DescribeDBClusterMigration
&DBClusterId=pc-**************
&<Common request parameters>
Sample success responses
XML
format
HTTP/1.1 200 OK
Content-Type:application/xml
<DescribeDBClusterMigrationResponse>
<DBClusterEndpointList>
<AddressItems>
<VSwitchId>vsw-**********</VSwitchId>
<ConnectionString>pc-**************.rwlb.rds.aliyuncs.com</ConnectionString>
<NetType>Private</NetType>
<Port>3306</Port>
<VPCId>vpc-**********</VPCId>
<IPAddress>192.***.***.10</IPAddress>
<SSLEnabled>"true"</SSLEnabled>
</AddressItems>
<DBEndpointId>pe-***********</DBEndpointId>
<EndpointType>Cluster</EndpointType>
</DBClusterEndpointList>
<Comment>test</Comment>
<RequestId>F2A9EFA7-915F-4572-8299-85A307******</RequestId>
<ExpiredTime>2020-06-17T01:56:36Z</ExpiredTime>
<DBClusterId>pc-****************</DBClusterId>
<Topologies>RDS2POLARDB</Topologies>
<RdsReadWriteMode>rw</RdsReadWriteMode>
<SourceRDSDBInstanceId>rm-************</SourceRDSDBInstanceId>
<DBClusterReadWriteMode>ro</DBClusterReadWriteMode>
<DelayedSeconds>0</DelayedSeconds>
<MigrationStatus>RDS2POLARDB_SYNCING</MigrationStatus>
<DtsInstanceId>dts**********618bs</DtsInstanceId>
<RdsEndpointList>
<AddressItems>
<VSwitchId>vsw-**************</VSwitchId>
<ConnectionString>rm-***********.mysql.rds.aliyuncs.com</ConnectionString>
<NetType>Private</NetType>
<Port>3306</Port>
<VPCId>vpc-************</VPCId>
<IPAddress>172.***.***.173</IPAddress>
<SSLEnabled>"true"</SSLEnabled>
</AddressItems>
<DBEndpointId>rm-************-normal</DBEndpointId>
<EndpointType>Normal</EndpointType>
</RdsEndpointList>
</DescribeDBClusterMigrationResponse>
JSON
format
HTTP/1.1 200 OK
Content-Type:application/json
{
"DBClusterEndpointList" : [ {
"AddressItems" : [ {
"VSwitchId" : "vsw-**********",
"ConnectionString" : "pc-**************.rwlb.rds.aliyuncs.com",
"NetType" : "Private",
"Port" : "3306",
"VPCId" : "vpc-**********",
"IPAddress" : "192.***.***.10",
"SSLEnabled" : "\"true\""
} ],
"DBEndpointId" : "pe-***********",
"EndpointType" : "Cluster"
} ],
"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" : "\"true\""
} ],
"DBEndpointId" : "rm-************-normal",
"EndpointType" : "Normal"
} ]
}
Error codes
HTTP status code | Error code | Error message | Description |
---|---|---|---|
404 | InvalidDBClusterId.NotFound | The DBClusterId provided does not exist in our records. | The error message returned because the specified cluster ID does not exist in the current record. |
For a list of error codes, visit the API Error Center.