Describes the details of a global database network (GDN).
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
polardb:DescribeGlobalDatabaseNetwork |
get |
*dbcluster
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| GDNId |
string |
Yes |
The ID of the GDN. |
gdn-bp1fttxsrmv***** |
| ResourceGroupId |
string |
No |
The ID of the resource group. |
rg-************ |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| GDNStatus |
string |
The status of the GDN. Valid values:
|
active |
| Connections |
array<object> |
The connection information. |
|
|
object |
|||
| ConnectionString |
string |
The connection string. |
abc.polardb.rds.aliyuncs.com |
| NetType |
string |
The network type. |
Private |
| Port |
string |
The port number of the connection string. |
3306 |
| DBVersion |
string |
The version of the database engine. Only version 8.0 is supported. |
8.0 |
| RequestId |
string |
The request ID. |
67F2E75F-AE67-4FB2-821F-A81237EACD15 |
| GDNId |
string |
The ID of the GDN. |
gdn-bp1fttxsrmv***** |
| CreateTime |
string |
The time when the GDN was created. |
2020-02-24T11:57:54Z |
| DBType |
string |
The type of the database engine. Only MySQL is supported. |
MySQL |
| GDNDescription |
string |
The description of the GDN. The description must meet the following requirements:
|
GDN-fortest |
| GlobalDomainName |
string |
The global domain name. |
[gdnid].gdn.rds.aliyuncs.com |
| DBClusters |
array<object> |
The clusters in the GDN. |
|
|
array<object> |
|||
| ReplicaLag |
string |
The cross-region replication delay between the primary cluster and the secondary cluster. Unit: seconds. |
1 |
| ExpireTime |
string |
The expiration time of the cluster. Note
This parameter is returned only for subscription clusters. An empty value is returned for pay-as-you-go clusters. |
2020-11-14T16:00:00Z |
| Expired |
string |
Indicates whether the cluster has expired.
Note
This parameter is returned only for subscription clusters. |
false |
| DBNodeClass |
string |
The specifications of the database node. |
polar.mysql.x4.large |
| PayType |
string |
The billing method:
|
Prepaid |
| DBType |
string |
The type of the database engine. Only MySQL is supported. |
MySQL |
| RegionId |
string |
The region ID. |
cn-hangzhou |
| DBVersion |
string |
The version of the database engine. Only version 8.0 is supported. |
8.0 |
| DBClusterId |
string |
The ID of the cluster in the GDN. |
pc-wz9fb5nn44u1d**** |
| DBClusterStatus |
string |
The status of the cluster in the GDN. For more information, see Cluster states. |
Running |
| StorageUsed |
string |
The used storage space. Unit: bytes. |
3012558848 |
| DBClusterDescription |
string |
The description of the cluster. |
test |
| Category |
string |
The edition of the cluster. Valid values: Normal: Cluster Edition Basic: Single-node Edition Archive: X-Engine Edition NormalMultimaster: Multi-master Cluster Edition SENormal: Standard Edition Note
|
Normal |
| Role |
string |
The role of the cluster. Valid values:
Note
A GDN contains one primary cluster and a maximum of four secondary clusters. |
primary |
| ServerlessType |
string |
The type of the Serverless cluster. The value is fixed as AgileServerless. Note
This parameter is supported only for Serverless clusters. |
AgileServerless |
| DBNodes |
array<object> |
The details of the database nodes. |
|
|
object |
|||
| DBNodeClass |
string |
The specifications of the database node. |
polar.mysql.x4.large |
| ZoneId |
string |
The zone ID. |
cn-hangzhou-i |
| CreationTime |
string |
The time when the database node was created. |
2020-03-23T21:35:43Z |
| DBNodeRole |
string |
The role of the database node. Valid values:
|
Reader |
| DBNodeStatus |
string |
The status of the node. Valid values:
|
Running |
| FailoverPriority |
integer |
The failover priority. Each node has a failover priority. A higher priority indicates a higher probability that the node is elected as the primary node during a failover. The value can be an integer from 1 to 15. |
1 |
| MaxConnections |
integer |
The maximum number of concurrent connections to the cluster. |
8000 |
| MaxIOPS |
integer |
The maximum input/output operations per second (IOPS). |
32000 |
| DBNodeId |
string |
The ID of the database node. |
pi-**************** |
| DBClusterId |
string |
The cluster ID. |
pc-bp1s826a1up****** |
| ResourceGroupId |
string |
The resource group ID. |
rg-************ |
| Labels |
object |
||
| GDNVersion |
string |
Examples
Success response
JSON format
{
"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": ""
}
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | GDN.NotFound | Failed to found GdnInstance by name:%s | |
| 404 | InvalidDBCluster.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.