查詢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。 |
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。