查询PolarDB集群的迁移状态。
接口说明
-
该接口用于查询 RDS 一键迁移到 PolarDB 的迁移状态。详情请参见一键升级 RDS MySQL 到 PolarDB MySQL 版。
-
调用该接口时,集群必须已经创建了一键升级任务。创建一键升级任务的接口为 CreateDBCluster ,参数 CreationOption 的取值需为 MigrationFromRDS。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

授权信息
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
polardb:DescribeDBClusterMigration |
get |
*dbcluster
|
无 | 无 |
请求参数
名称 |
类型 |
必填 |
描述 |
示例值 |
DBClusterId |
string |
是 |
集群 ID。 |
pc-************** |
返回参数
名称 |
类型 |
描述 |
示例值 |
object |
|||
DBClusterEndpointList |
array<object> |
PolarDB 连接地址详情。 |
|
array<object> |
|||
AddressItems |
array<object> |
连接串详情。 |
|
object |
|||
VSwitchId |
string |
虚拟交换机 ID。 |
vsw-********** |
ConnectionString |
string |
连接串。 |
pc-**************.rwlb.rds.aliyuncs.com |
NetType |
string |
连接串网络类型,取值范围如下:
|
Private |
Port |
string |
端口号。 |
3306 |
VPCId |
string |
专有网络 ID。 |
vpc-********** |
IPAddress |
string |
IP 地址。 |
192.***.***.10 |
SSLEnabled |
string |
是否开启 SSL 加密。取值如下:
|
Enabled |
DBEndpointId |
string |
连接地址 ID。 |
pe-*********** |
EndpointType |
string |
连接地址类型,取值范围如下:
|
Cluster |
ReadWriteMode |
string |
读写模式,取值范围如下:
|
ReadOnly |
Comment |
string |
迁移异常的注释信息,若迁移无异常则返回空值。 |
test |
RequestId |
string |
请求 ID。 |
F2A9EFA7-915F-4572-8299-85A307****** |
ExpiredTime |
string |
RDS 与 PolarDB 之间的复制关系到期时间,格式为 |
2020-06-17T01:56:36Z |
DBClusterId |
string |
集群 ID。 |
pc-**************** |
Topologies |
string |
同步关系,取值范围如下:
|
RDS2POLARDB |
RdsReadWriteMode |
string |
源 RDS 实例读写模式,取值范围如下:
|
rw |
SourceRDSDBInstanceId |
string |
源 RDS 实例 ID。 |
rm-************ |
DBClusterReadWriteMode |
string |
集群读写模式,取值范围如下:
|
ro |
DelayedSeconds |
integer |
RDS 与 PolarDB 之间的复制延迟时间,单位为秒。 |
0 |
MigrationStatus |
string |
PolarDB 集群的迁移状态,取值范围如下:
|
RDS2POLARDB_SYNCING |
DtsInstanceId |
string |
同步任务 ID。 |
dts**********618bs |
RdsEndpointList |
array<object> |
RDS 连接地址详情。 |
|
array<object> |
|||
AddressItems |
array<object> |
连接串详情。 |
|
object |
|||
VSwitchId |
string |
虚拟交换机 ID。 |
vsw-************** |
ConnectionString |
string |
连接串。 |
rm-***********.mysql.rds.aliyuncs.com |
NetType |
string |
连接串网络类型,取值范围如下:
|
Private |
Port |
string |
端口号。 |
3306 |
VPCId |
string |
专有网络 ID。 |
vpc-************ |
IPAddress |
string |
IP 地址。 |
172.***.***.173 |
SSLEnabled |
string |
是否开启 SSL 加密。取值如下:
|
Enabled |
DBEndpointId |
string |
连接地址 ID。 |
rm-************-normal |
EndpointType |
string |
连接地址类型,取值范围如下:
|
Normal |
CustinsType |
string |
实例类型 |
ReadOnly Maxscale Primary |
SrcDbType |
string |
源数据库类型。取值如下:
|
PolarDBMySQL |
示例
正常返回示例
JSON
格式
{
"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"
}
错误码
HTTP status code |
错误码 |
错误信息 |
描述 |
---|---|---|---|
404 | InvalidDBClusterId.NotFound | The DBClusterId provided does not exist in our records. | 当前的记录中不存在提供的 DBClusterId。 |
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。