查詢全球資料庫網路(GDN)詳情。
調試
您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。
調試
授權資訊
|
操作 |
存取層級 |
資源類型 |
條件關鍵字 |
關聯操作 |
|
polardb:DescribeGlobalDatabaseNetwork |
get |
*dbcluster
|
無 | 無 |
請求參數
|
名稱 |
類型 |
必填 |
描述 |
樣本值 |
| GDNId |
string |
是 |
GDN ID。 |
gdn-bp1fttxsrmv***** |
| ResourceGroupId |
string |
否 |
資源群組 ID。 |
rg-************ |
返回參數
|
名稱 |
類型 |
描述 |
樣本值 |
|
object |
|||
| GDNStatus |
string |
GDN 的狀態。取值:
|
active |
| Connections |
array<object> |
連結資訊。 |
|
|
object |
|||
| ConnectionString |
string |
連結地址。 |
abc.polardb.rds.aliyuncs.com |
| NetType |
string |
網路類型。 |
Private |
| Port |
string |
連結地址的連接埠號碼。 |
3306 |
| DBVersion |
string |
資料庫引擎版本。當前僅支援 8.0 版本。 |
8.0 |
| RequestId |
string |
請求 ID。 |
67F2E75F-AE67-4FB2-821F-A81237EACD15 |
| GDNId |
string |
GDN ID。 |
gdn-bp1fttxsrmv***** |
| CreateTime |
string |
GDN 的建立時間。 |
2020-02-24T11:57:54Z |
| DBType |
string |
資料庫引擎類型。當前僅支援 MySQL 類型。 |
MySQL |
| GDNDescription |
string |
GDN 備忘描述。要求如下:
|
GDN-fortest |
| GlobalDomainName |
string |
全域網域名稱 |
[gdnid].gdn.rds.aliyuncs.com |
| DBClusters |
array<object> |
GDN 中包含的叢集。 |
|
|
array<object> |
|||
| ReplicaLag |
string |
主從叢集間跨地區的複寫延遲時間。單位為秒。 |
1 |
| ExpireTime |
string |
叢集到期時間。 說明
僅付費方式為 Prepaid(訂用帳戶)的叢集會返回具體參數值,Postpaid(隨用隨付)叢集則返回空值。 |
2020-11-14T16:00:00Z |
| Expired |
string |
叢集是否到期。
說明
僅付費方式為 Prepaid(訂用帳戶)的叢集支援返回該參數。 |
false |
| DBNodeClass |
string |
資料庫節點規格。 |
polar.mysql.x4.large |
| PayType |
string |
付費類型:
|
Prepaid |
| DBType |
string |
資料庫引擎類型。當前僅支援 MySQL 類型。 |
MySQL |
| RegionId |
string |
地區 ID。 |
cn-hangzhou |
| DBVersion |
string |
資料庫引擎版本。當前僅支援 8.0 版本。 |
8.0 |
| DBClusterId |
string |
GDN 中的叢集 ID。 |
pc-wz9fb5nn44u1d**** |
| DBClusterStatus |
string |
GDN 中的叢集狀態。具體請參見叢集狀態表。 |
Running |
| StorageUsed |
string |
儲存空間的使用量,單位為 Byte。 |
3012558848 |
| DBClusterDescription |
string |
叢集描述。 |
test |
| Category |
string |
產品系列,取值範圍如下: Normal:叢集版 Basic:單節點 Archive:高壓縮引擎(X-Engine) NormalMultimaster:多主架構叢集版 SENormal:標準版 說明
|
Normal |
| Role |
string |
叢集角色。取值:
說明
一個 GDN 中包含一個主叢集和最多四個從叢集。 |
primary |
| ServerlessType |
string |
Serverless 類型。當前取值固定為 AgileServerless(敏態)。 說明
僅 Serverless 叢集支援該參數。 |
AgileServerless |
| DBNodes |
array<object> |
資料庫節點的資訊詳情。 |
|
|
object |
|||
| DBNodeClass |
string |
資料庫節點規格。 |
polar.mysql.x4.large |
| ZoneId |
string |
可用性區域 ID。 |
cn-hangzhou-i |
| CreationTime |
string |
資料庫節點的建立時間。 |
2020-03-23T21:35:43Z |
| DBNodeRole |
string |
資料庫節點的角色。取值:
|
Reader |
| DBNodeStatus |
string |
節點狀態。取值:
|
Running |
| FailoverPriority |
integer |
Failover 優先順序。每個節點都有一個 Failover 優先順序,決定了當故障切換時,該節點被選舉為主節點的機率高低。數值越大,優先順序越高,取值範圍為 1~15。 |
1 |
| MaxConnections |
integer |
叢集最大的並發串連數。 |
8000 |
| MaxIOPS |
integer |
最大 I/O 請求次數,即 IOPS。 |
32000 |
| DBNodeId |
string |
資料庫節點 ID。 |
pi-**************** |
| DBClusterId |
string |
叢集 ID |
pc-bp1s826a1up****** |
| ResourceGroupId |
string |
資源群組 ID |
rg-************ |
| Labels |
object |
||
| GDNVersion |
string |
樣本
正常返回樣本
JSON格式
{
"GDNStatus": "active",
"Connections": [
{
"ConnectionString": "abc.polardb.rds.aliyuncs.com",
"NetType": "Private",
"Port": "3306"
}
],
"DBVersion": "8.0",
"RequestId": "67F2E75F-AE67-4FB2-821F-A81237EACD15",
"GDNId": "gdn-bp1fttxsrmv*****",
"CreateTime": "2020-02-24T11:57:54Z",
"DBType": "MySQL",
"GDNDescription": "GDN-fortest",
"GlobalDomainName": "[gdnid].gdn.rds.aliyuncs.com",
"DBClusters": [
{
"ReplicaLag": "1",
"ExpireTime": "2020-11-14T16:00:00Z",
"Expired": "false",
"DBNodeClass": "polar.mysql.x4.large",
"PayType": "Prepaid",
"DBType": "MySQL",
"RegionId": "cn-hangzhou",
"DBVersion": "8.0",
"DBClusterId": "pc-wz9fb5nn44u1d****",
"DBClusterStatus": "Running",
"StorageUsed": "3012558848",
"DBClusterDescription": "test",
"Category": "Normal",
"Role": "primary",
"ServerlessType": "AgileServerless",
"DBNodes": [
{
"DBNodeClass": "polar.mysql.x4.large",
"ZoneId": "cn-hangzhou-i",
"CreationTime": "2020-03-23T21:35:43Z",
"DBNodeRole": "Reader",
"DBNodeStatus": "Running",
"FailoverPriority": 1,
"MaxConnections": 8000,
"MaxIOPS": 32000,
"DBNodeId": "pi-****************"
}
]
}
],
"DBClusterId": "pc-bp1s826a1up******",
"ResourceGroupId": "rg-************",
"Labels": {
"GDNVersion": ""
}
}
錯誤碼
|
HTTP status code |
錯誤碼 |
錯誤資訊 |
描述 |
|---|---|---|---|
| 400 | GDN.NotFound | Failed to found GdnInstance by name:%s | |
| 404 | InvalidDBCluster.NotFound | The DBClusterId provided does not exist in our records. | 當前的記錄中不存在提供的DBClusterId。 |
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。