All Products
Search
Document Center

PolarDB:DescribeGlobalDatabaseNetwork

Last Updated:Dec 11, 2025

Describes the details of a global database network (GDN).

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

Action

Access level

Resource type

Condition key

Dependent action

polardb:DescribeGlobalDatabaseNetwork

get

*dbcluster

acs:polardb:{#regionId}:{#accountId}:dbcluster/{#dbclusterId}

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:

  • creating: The GDN is being created.

  • active: The GDN is running.

  • deleting: The GDN is being deleted.

  • locked: The GDN is locked. You cannot perform any operations on the clusters in the GDN.

  • removing_member: The secondary cluster is being removed from the GDN.

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:

  • 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

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.

  • true: The cluster has expired.

  • false: The cluster has not 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:

  • Postpaid: pay-as-you-go.

  • Prepaid: subscription.

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
  • The single-node edition is not supported for PolarDB for PostgreSQL clusters that run PostgreSQL 11.

  • The Standard Edition is supported for PolarDB for MySQL clusters that run MySQL 8.0 or 5.7 and for PolarDB for PostgreSQL clusters that run PostgreSQL 14.

  • The X-Engine and Multi-master Cluster editions are supported for PolarDB for MySQL clusters that run MySQL 8.0.

Normal

Role

string

The role of the cluster. Valid values:

  • primary: The primary cluster.

  • standby: The secondary cluster.

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:

  • Writer: The primary node.

  • Reader: The read-only node.

Reader

DBNodeStatus

string

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 being restarted.

  • ClassChanging: The node specifications 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 is being updated.

  • Maintaining: The cluster is being maintained.

  • Switching: A switchover is in progress.

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.