All Products
Search
Document Center

PolarDB:DescribeGlobalDatabaseNetwork

Last Updated:May 29, 2025

Queries the information about a Global Database Network (GDN).

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

Authorization information

The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:

  • Operation: the value that you can use in the Action element to specify the operation on a resource.
  • Access level: the access level of each operation. The levels are read, write, and list.
  • Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
    • For mandatory resource types, indicate with a prefix of * .
    • If the permissions cannot be granted at the resource level, All Resources is used in the Resource type column of the operation.
  • Condition Key: the condition key that is defined by the cloud service.
  • Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
OperationAccess levelResource typeCondition keyAssociated operation
polardb:DescribeGlobalDatabaseNetworkget
*dbcluster
acs:polardb:{#regionId}:{#accountId}:dbcluster/{#dbclusterId}
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
GDNIdstringYes

The ID of the GDN.

gdn-bp1fttxsrmv*****
ResourceGroupIdstringNo

The ID of the resource group.

rg-************

Response parameters

ParameterTypeDescriptionExample
object
GDNStatusstring

The status of the GDN. Valid values:

  • Creating: The GDN is being created.
  • active: The GDN is running.
  • deleting: The GDN is being deleted.
  • locked: The GDN is locked. If the GDN is locked, you cannot perform operations on clusters in the GDN.
  • removing_member: The secondary cluster is being removed from the GDN.
active
Connectionsarray<object>

The information about the connection to the cluster.

Connectionobject
ConnectionStringstring

The endpoint URL of the database service.

abc.polardb.rds.aliyuncs.com
NetTypestring

The network type for the database connection.

Private
Portstring

The port number for the database connection.

3306
DBVersionstring

The version of the database engine. Only version 8.0 is supported.

8.0
RequestIdstring

The ID of the request.

67F2E75F-AE67-4FB2-821F-A81237EACD15
GDNIdstring

The ID of the GDN.

gdn-bp1fttxsrmv*****
CreateTimestring

The time at which the GDN was created.

2020-02-24T11:57:54Z
DBTypestring

The type of the database engine. Only MySQL is supported.

MySQL
GDNDescriptionstring

The description of the GDN. The description must meet the following requirements:

  • It cannot start with http:// or https://.
  • It must start with a letter.
  • It can contain letters, digits, underscores (_), and hyphens (-).
  • It must be 2 to 126 characters in length.
GDN-fortest
GlobalDomainNamestring

The global domain name.

[gdnid].gdn.rds.aliyuncs.com
DBClustersarray<object>

The clusters in the GDN.

DBClusterobject
ReplicaLagstring

The cross-region data replication latency between the primary cluster and secondary clusters. Unit: seconds.

1
ExpireTimestring

The expiration time of the cluster.

Note A specific value is returned only for subscription (Prepaid) clusters. No value is returned for pay-as-you-go (Postpaid) clusters.
2020-11-14T16:00:00Z
Expiredstring

Indicates whether the cluster has expired. Valid values:

  • true (default)
  • false
Note This parameter is returned only for subscription (Prepaid) clusters.
false
DBNodeClassstring

The node specifications of the cluster.

polar.mysql.x4.large
PayTypestring

The billing method of the cluster. Valid values:

  • Postpaid: pay-as-you-go
  • Prepaid: subscription
Prepaid
DBTypestring

The database engine type of the cluster. Only MySQL is supported.

MySQL
RegionIdstring

The region ID of the cluster.

cn-hangzhou
DBVersionstring

The version of the database engine. Only version 8.0 is supported.

8.0
DBClusterIdstring

The ID of the cluster.

pc-wz9fb5nn44u1d****
DBClusterStatusstring

The status of the cluster. For more information, see Cluster status table.

Running
StorageUsedstring

The storage usage of the cluster. Unit: bytes.

3012558848
DBClusterDescriptionstring

The description of the cluster.

test
Categorystring

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
  • PolarDB for PostgreSQL clusters that run the PostgreSQL 11 database engine do not support Single Node Edition.

  • PolarDB for MySQL 8.0 and 5.7 clusters, and PolarDB for PostgreSQL clusters that run the PostgreSQL 14 database engine support Standard Edition.

  • PolarDB for MySQL 8.0 clusters support X-Engine Edition and Multi-master Cluster Edition.

Normal
Rolestring

The role of the cluster. Valid values:

  • Primary: the primary cluster
  • standby: a secondary cluster
Note A GDN consists of one primary cluster and up to four secondary clusters.
primary
ServerlessTypestring

Indicates whether the cluster is a serverless cluster. The value is fixed at AgileServerless.

Note This parameter is returned only for serverless clusters.
AgileServerless
DBNodesarray<object>

The nodes of the cluster.

DBNodeobject
DBNodeClassstring

The specifications of the node.

polar.mysql.x4.large
ZoneIdstring

The zone ID of the node.

cn-hangzhou-i
CreationTimestring

The time when the node was created.

2020-03-23T21:35:43Z
DBNodeRolestring

The role of the node. Valid values:

  • Writer: the primary node
  • Reader: a read-only node
Reader
DBNodeStatusstring

The status of the node. Valid values:

  • Creating: The node is being created.
  • Running: The node is running.
  • Deleting: The node is being deleted.
  • Rebooting: The node is restarting.
  • ClassChanging: The specifications of the node are being changed.
  • NetAddressCreating: The network connection is being created.
  • NetAddressDeleting: The network connection is being deleted.
  • NetAddressModifying: The network connection is being modified.
  • MinorVersionUpgrading: The minor version of the node is being updated.
  • Maintaining: The node is being maintained.
  • Switching: A failover is being performed.
Running
FailoverPriorityinteger

The failover priority. Each node is assigned a failover priority. The failover priority determines which node is selected as the primary node when a failover occurs. A larger value indicates a higher priority. Valid values: 1 to 15.

1
MaxConnectionsinteger

The maximum number of concurrent connections.

8000
MaxIOPSinteger

The maximum input/output operations per second (IOPS).

32000
DBNodeIdstring

The node ID.

pi-****************
DBClusterIdstring

The ID of the cluster.

pc-bp1s826a1up******
ResourceGroupIdstring

The ID of the resource group.

rg-************

Examples

Sample success responses

JSONformat

{
  "GDNStatus": "active",
  "Connections": [
    {
      "ConnectionString": "abc.polardb.rds.aliyuncs.com",
      "NetType": "Private",
      "Port": 3306
    }
  ],
  "DBVersion": 8,
  "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,
      "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-************"
}

Error codes

HTTP status codeError codeError messageDescription
400GDN.NotFoundFailed to found GdnInstance by name:%sFailed to find cluster %s by GDN name.
404InvalidDBCluster.NotFoundThe DBClusterId provided does not exist in our records.The specified DBClusterId parameter does not exist in the current record.

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
2024-08-29The Error code has changed. The response structure of the API has changedView Change Details
2024-01-24The Error code has changed. The response structure of the API has changedView Change Details
2021-06-21Add OperationView Change Details