DescribeDBClusterAttribute

Updated at:

Queries the attributes of a cluster.

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:DescribeDBClusterAttribute

get

*DBCluster

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

None None

Request parameters

Parameter

Type

Required

Description

Example

DBClusterId

string

Yes

The cluster ID.

Note

You can call the DescribeDBClusters operation to query the details of all clusters under your account, including the cluster ID.

pc-*****************

DescribeType

string

No

Specifies whether to retrieve information about AI-related nodes.

AI

Response elements

Element

Type

Description

Example

object

{}

DeletionLock

integer

The lock status for cluster deletion. Valid values:

  • 0: Unlocked. The cluster can be deleted.

  • 1: Locked. The cluster cannot be deleted.

0

Category

string

The edition. 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 11 does not support the Single Node Edition.

  • PolarDB for MySQL 8.0 and 5.7, and PolarDB for PostgreSQL 14 support the Standard Edition.

  • PolarDB for MySQL 8.0 supports the X-Engine Edition and Multi-master Cluster Edition.

Normal

ResourceGroupId

string

The ID of the resource group.

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

DataLevel1BackupChainSize

integer

The total size of level-1 backups (snapshots). Unit: bytes.

74448896

DBClusterId

string

The ID of the cluster.

pc-*****************

DBType

string

The type of the database engine.

MySQL

DBClusterNetworkType

string

The network type of the cluster.

VPC

IsLatestVersion

boolean

Indicates whether the latest kernel version is used. Valid values:

  • true: Yes.

  • false: No.

false

HasCompleteStandbyRes

boolean

Indicates whether resources for the new primary database are replenished after a cross-zone switch. Valid values:

  • true: Yes.

  • false: No.

false

HotStandbyCluster

string

Indicates whether the storage Hot Standby Cluster (and standby compute nodes) is enabled. Valid values:

  • StandbyClusterON: The hot standby storage cluster or both the hot standby storage cluster and standby compute nodes are enabled.

  • StandbyClusterOFF: The hot standby storage cluster or both the hot standby storage cluster and standby compute nodes are disabled.

StandbyClusterON

DataSyncMode

string

The data replication relationship pattern. Valid values:

  • AsyncSync: Asynchronous.

  • SemiSync: Semi-synchronous.

AsyncSync

StandbyHAMode

string

The cross-zone disaster recovery mode. Valid values:

  • ON: Cross-zone disaster recovery is enabled.

  • OFF: Cross-zone disaster recovery is disabled.

  • 0: Customer drill mode.

OFF

CompressStorageMode

string

Indicates whether storage compression is enabled. Valid values:

  • ON: Enabled.

  • OFF: Disabled.

ON

StorageMax

integer

The maximum storage capacity for the current cluster specifications. Unit: bytes.

10995116277760

DBVersion

string

The database engine version.

8.0

DBNodes

array<object>

The details of the nodes.

[]

object

{}

CreationTime

string

The time when the node was created.

The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC.

2020-03-23T21:35:43Z

FailoverPriority

integer

The failover priority. Each node has a failover priority, which determines the probability of the node being elected as the primary node during a failover. A higher value indicates a higher priority. Valid values: 1 to 15.

1

MaxIOPS

integer

The maximum number of I/O requests per second, namely IOPS.

32000

DBNodeClass

string

The node specifications.

polar.mysql.x4.large

CpuCores

string

The number of CPU cores for the node.

2

MemorySize

string

The memory size of the node. Unit: MB.

8192

DBNodeRole

string

The role of the node. Valid values:

  • Writer: Primary node.

  • Reader: Read-only node.

Reader

ZoneId

string

The zone ID.

cn-hangzhou-i

MaxConnections

integer

The maximum number of concurrent connections to the cluster.

8000

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 restarting.

  • DBNodeCreating: A node is being added.

  • DBNodeDeleting: A node is being deleted.

  • ClassChanging: The node specifications are being changed.

  • NetAddressCreating: A network connection is being created.

  • NetAddressDeleting: A network connection is being deleted.

  • NetAddressModifying: A network connection is being modified.

  • MinorVersionUpgrading: The minor version is being upgraded.

  • Maintaining: The instance is under maintenance.

  • Switching: A switchover is in progress.

Running

DBNodeId

string

The ID of the node.

pi-****************

ImciSwitch

string

Indicates whether the In-Memory Column Index (IMCI) feature is enabled. Valid values:

  • ON: Enabled.

  • OFF: Disabled.

ON

HotReplicaMode

string

Indicates whether hot standby is enabled. Valid values:

  • ON: Enabled.

  • OFF: Disabled.

ON

AddedCpuCores

string

The number of CPU cores added by automatically scaling local resources.

6

MasterId

string

The ID of the primary node in the Multi-master Cluster Edition.

pi-bp18z52akld3*****

SccMode

string

Indicates whether the global consistency (high-performance mode) feature is enabled for the node. Valid values:

  • ON: Enabled.

  • OFF: Disabled.

ON

ServerWeight

string

The routing weight. Valid values: 1 to 100. Default value: 1.

1

ServerlessType

string

The serverless type of the node. Valid values:

  • AgileServerless: Agile state, which refers to serverless nodes.

  • SteadyServerless: Steady state, which refers to nodes in a cluster with defined specifications that have serverless capabilities enabled.

Note
  • This parameter is supported only for serverless clusters or a cluster with defined specifications that have the serverless feature enabled. For more information, see Serverless.

SteadyServerless

SubCluster

string

Indicates whether the node is in the primary zone or secondary zone. This is mainly used for resource symmetry. Valid values:

  • Primary: Primary zone.

  • Standby: Secondary zone.

Primary

RemoteMemorySize

string

The size of the remote memory. Unit: MB.

3072

Orca

string

The Orca feature status. Valid values:

  • on: Enabled.

  • off: Disabled.

off

MultiMasterLocalStandby

string

The local secondary node in the multi-master architecture.

pi-****************

MultiMasterPrimaryNode

string

The primary node in the multi-master architecture.

pi-****************

DBNodeDescription

string

The description of the node.

test

SubGroupDescription

string

The description of the cluster subgroup.

test Description

MirrorInsName

string

The name of the hot replica corresponding to the node in the architecture with hot standby storage and hot standby compute enabled.

pi-bp18z52mirror*****

DBNodeCXLRemoteMemory

string

The Compute Express Link (CXL) remote memory configuration.

3072

RemoteMemoryMin

integer

The minimum remote memory capacity of the node.

0

RemoteMemoryMax

integer

The maximum remote memory capacity of the node.

0

RemoteMemoryRecommended

integer

The recommended remote memory capacity of the node.

0

DedicatedHostModel

boolean

Indicates whether the node uses the exclusive host mode.

false

ZoneIds

string

The zone ID.

cn-hangzhou-i,cn-hangzhou-g

MaintainTime

string

The maintenance window of the cluster. The time is in the HH:mmZ-HH:mmZ format and displayed in UTC. For example, 16:00Z-17:00Z indicates that routine maintenance can be performed from 00:00 to 01:00 (UTC+8).

18:00Z-19:00Z

Engine

string

The engine of the cluster.

POLARDB

Tags

array<object>

The details of the tags.

[]

object

{}

Key

string

The tag key.

test

Value

string

The tag value.

MySQL

RequestId

string

The ID of the request.

074467EF-86B9-4C23-ACBF-E9B81A******

VPCId

string

The ID of the virtual private cloud (VPC).

vpc-*******************

SearchClusterStatus

string

The running status of the search node.

Running

VSwitchId

string

The ID of the vSwitch.

vsw-*********************

DBClusterDescription

string

The description of the cluster.

test

Expired

string

Indicates whether the cluster has expired.

Note

This parameter is returned only for clusters whose billing method is Prepaid (subscription).

false

PayType

string

The billing method. Valid values:

  • Postpaid: Pay-as-you-go.

  • Prepaid: Subscription.

Prepaid

StoragePayType

string

The storage billing method. Valid values:

  • Postpaid: Pay-as-you-go based on storage capacity.

  • Prepaid: Subscription based on storage space.

Prepaid

LockMode

string

The lock mode. Valid values:

  • Unlock: Unlocked.

  • ManualLock: Manually locked.

  • LockByExpiration: Automatically locked due to cluster expiration.

Unlock

SearchStorageUsed

integer

The storage usage of the search node.

3012558848

SearchCompressStorageUsed

integer

The size of compressed storage data on the search node.

Note

This parameter is returned only when the storage compression feature is enabled for the cluster.

15529410560

StorageSpace

integer

The storage space for subscription billing. Unit: bytes.

50

DBVersionStatus

string

The status of the current minor database engine version. Valid values:

  • Stable: The current version is stable.

  • Old: The current version is outdated. Upgrade to the latest version.

  • HighRisk: The current version has critical defects. Upgrade to the latest version immediately.

  • Beta: The current version is a beta version.

Note
  • For more information about how to upgrade the minor database engine version, see Version upgrade.

  • This parameter is returned only when the database engine type (DBType) is MySQL.

Stable

CreationTime

string

The time when the cluster was created.

The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC.

2020-08-14T05:58:42Z

SQLSize

integer

The storage usage of SQL statements. Unit: bytes. A value of -1 indicates that no data is available.

0

InodeTotal

integer

The maximum number of inodes in the file system.

6291456

InodeUsed

integer

The current inode usage.

4194304

BlktagTotal

integer

The maximum number of blktags in the file system.

7864320

BlktagUsed

integer

The current blktag usage.

5242880

RegionId

string

The region ID.

cn-hangzhou

ExpireTime

string

The expiration time of the cluster.

Note

A specific value is returned only for clusters whose billing method is Prepaid (subscription). For Postpaid (pay-as-you-go) clusters, an empty value is returned.

The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC.

2020-11-14T16:00:00Z

SubCategory

string

The specification type of the compute node. Valid values:

  • Exclusive: Dedicated

  • General: General-purpose

Note

This parameter is returned only for PolarDB for MySQL clusters of the Cluster Edition.

Exclusive

IsProxyLatestVersion

boolean

Indicates whether the latest version of PolarProxy is used. Valid values:

  • true: Yes.

  • false: No.

false

StorageType

string

The storage type. The value is fixed as HighPerformance.

HighPerformance

ServerlessType

string

The serverless type of the cluster. Valid values:

  • AgileServerless: Agile state, which refers to serverless clusters.

  • SteadyServerless: Steady state, which refers to cluster with defined specifications that have serverless capabilities enabled.

Note

This parameter is supported only for serverless clusters or cluster with defined specifications that have the serverless feature enabled.

SteadyServerless

StrictConsistency

string

Indicates whether strong data consistency across multiple zones is enabled for the cluster. Valid values:

  • ON: Strong data consistency across multiple zones is enabled. This applies to the Standard Edition in a three-zone deployment scenario.

  • OFF: Strong data consistency across multiple zones is disabled.

ON

ProxyCpuCores

string

The number of CPU cores for PolarProxy.

4

ProxyStandardCpuCores

string

The number of CPU cores for the standard configuration of the database proxy.

2

ProxyType

string

The type of the database proxy. Valid values:

  • Exclusive: Dedicated Enterprise Edition.

  • General: Standard Enterprise Edition.

Exclusive

ProxyStatus

string

The status of the database proxy. Valid values:

  • Creating: Creating.

  • Running: Running.

  • Deleting: Releasing.

  • Rebooting: Restarting.

  • DBNodeCreating: Increasing nodes.

  • DBNodeDeleting: Deleting nodes.

  • ClassChanging: Changing node specifications.

  • NetAddressCreating: Creating network connectivity.

  • NetAddressDeleting: Deleting network connectivity.

  • NetAddressModifying: Modifying network connectivity.

  • Deleted: Released.

Running

ProxyServerlessType

string

The serverless type of the database proxy. Valid values:

  • AgileServerless: Agile state, which refers to serverless clusters.

  • SteadyServerless: Steady state, which refers to cluster with defined specifications (clusters whose billing method is subscription or pay-as-you-go).

SteadyServerless

Architecture

string

The CPU architecture. Valid values:

  • X86

  • ARM

X86

AiType

string

The type of the AI node. Valid values:

  • SearchNode: Search node.

  • DLNode: AI node.

DLNode

ProvisionedIops

string

The provisioned read and write IOPS for the ESSD AutoPL cloud disk. Valid values: 0 to min{50,000, 1000 × Capacity - Baseline performance}.

Baseline performance = min{1,800 + 50 × Capacity, 50,000}.

Note This parameter is supported only when StorageType is set to ESSDAUTOPL.

2500

AiCreatingTime

string

The start time of the free AI feature.

The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC.

2024-03-13T01:20:28Z

SupportInstantSwitchWithImci

string

Indicates whether the failover with hot replica feature compatible with IMCI is supported.

ON

Orca

string

The Orca feature. Valid values:

  • on: Enabled.

  • off: Disabled.

ON

SourceDBCluster

string

The ID of the source cluster.

Note This parameter is supported only for clusters restored from backup sets or points in time after June 1, 2024.

pc-pz51ziv48317b2880

RestoreType

string

The restoration method of the cluster. Valid values:

  • RestoreByTime: Point-in-time restore based on level-1 backups.

  • RestoreByBackupSet: Restoration from a backup set based on level-1 backups.

  • RestoreByTimeOss: Point-in-time restore based on level-2 backups.

  • RestoreByBackupSetOss: Restoration from a backup set based on level-2 backups.

  • CloneFromSourceCluster: Cloned from the source cluster.

Note This parameter is supported only for clusters restored from backup sets or points in time after June 1, 2024.

RestoreByTime

RestoreDataPoint

string

  • If RestoreType is set to RestoreByTime or RestoreByTimeOss, this value indicates the point in time to which the cluster is restored.

  • If RestoreType is set to RestoreByBackupSet or RestoreByBackupSetOss, this value indicates the ID of the backup set from which the cluster is restored.

Note This parameter is supported only for clusters restored from backup sets or points in time after June 1, 2024.

2179639137

SourceRegionId

string

The region ID of the source cluster.

Note This parameter is returned only when the source cluster ID exists.

cn-beijing

ImciAutoIndex

string

The automatic IMCI-based query acceleration feature. Valid values:

  • ON: Enabled.

  • OFF: Disabled.

OFF

AutoUpgradeMinorVersion

string

The minor engine version update method. Valid values:

  • Auto: Automatic update.

  • Manual: Manual update.

Manual

BurstingEnabled

string

Indicates whether I/O performance burst is enabled for the ESSD AutoPL cloud disk. Valid values:

  • true: Enabled.

  • false: Disabled.

false

RowCompression

string

The row compression settings.

OFF

ImperceptibleSwitch

string

The seamless switchover feature. Valid values:

  • true: Enabled.

  • false: Disabled.

true

StorageUsed

integer

The amount of used storage space, in bytes.

3012558848

CompressStorageUsed

integer

The size of the compressed storage data.

Note

This parameter is returned only when the storage compression feature is enabled for the cluster.

15529410560

DBClusterStatus

string

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

Running

Branch

object

The branch information of the cluster.

{}

ParentInsName

string

The name of the parent branch instance.

pc-2bbb22b2bb22bb222

BranchTime

string

The branch time of the current branch. The time follows the RFC 3339 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC.

2026-01-01T00:00:00Z

BranchLsn

string

The log sequence number (LSN) of the current branch.

2/2

ChildBranch

array<object>

The list of child branches.

[]

object

{}

InsName

string

The name of the child branch instance.

pc-2bbb22b2bb22bb222

DBClusterDescription

string

The description of the child branch cluster.

test

BranchTime

string

The branch time of the child branch. The time follows the RFC 3339 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC.

2026-01-01T00:00:00Z

BranchLsn

string

The log sequence number (LSN) of the child branch.

2/2

HasChild

boolean

Indicates whether lower-level child branches exist.

false

ColumnTable

string

Indicates whether the column store table is enabled.

OFF

ConnectionResourceQuota

integer

The quota for connection resources (exclusive to AgenticDB).

0

ConnectionResourceUsed

integer

The number of used connection resources (exclusive to AgenticDB).

0

StorageUpperBound

integer

The upper limit for automatic storage scaling of the Standard Edition cluster, in GB.

800

StorageAutoScale

string

Indicates whether automatic storage scaling is enabled for the Standard Edition cluster. A value of Enable indicates that the feature is enabled, and a value of Disable indicates that the feature is disabled.

Enable

Examples

Success response

JSON format

{
  "DeletionLock": 0,
  "Category": "Normal",
  "ResourceGroupId": "rg-***************",
  "DataLevel1BackupChainSize": 74448896,
  "DBClusterId": "pc-*****************",
  "DBType": "MySQL",
  "DBClusterNetworkType": "VPC",
  "IsLatestVersion": false,
  "HasCompleteStandbyRes": false,
  "HotStandbyCluster": "StandbyClusterON",
  "DataSyncMode": "AsyncSync",
  "StandbyHAMode": "OFF",
  "CompressStorageMode": "ON",
  "StorageMax": 10995116277760,
  "DBVersion": "8.0",
  "DBNodes": [
    {
      "CreationTime": "2020-03-23T21:35:43Z",
      "FailoverPriority": 1,
      "MaxIOPS": 32000,
      "DBNodeClass": "polar.mysql.x4.large",
      "CpuCores": "2",
      "MemorySize": "8192",
      "DBNodeRole": "Reader",
      "ZoneId": "cn-hangzhou-i",
      "MaxConnections": 8000,
      "DBNodeStatus": "Running",
      "DBNodeId": "pi-****************",
      "ImciSwitch": "ON",
      "HotReplicaMode": "ON",
      "AddedCpuCores": "6",
      "MasterId": "pi-bp18z52akld3*****",
      "SccMode": "ON",
      "ServerWeight": "1",
      "ServerlessType": "SteadyServerless",
      "SubCluster": "Primary",
      "RemoteMemorySize": "3072",
      "Orca": "off",
      "MultiMasterLocalStandby": "pi-****************",
      "MultiMasterPrimaryNode": "pi-****************",
      "DBNodeDescription": "test",
      "SubGroupDescription": "test Description",
      "MirrorInsName": "pi-bp18z52mirror*****",
      "DBNodeCXLRemoteMemory": "3072",
      "RemoteMemoryMin": 0,
      "RemoteMemoryMax": 0,
      "RemoteMemoryRecommended": 0,
      "DedicatedHostModel": false
    }
  ],
  "ZoneIds": "cn-hangzhou-i,cn-hangzhou-g",
  "MaintainTime": "18:00Z-19:00Z",
  "Engine": "POLARDB",
  "Tags": [
    {
      "Key": "test",
      "Value": "MySQL"
    }
  ],
  "RequestId": "074467EF-86B9-4C23-ACBF-E9B81A******",
  "VPCId": "vpc-*******************",
  "SearchClusterStatus": "Running",
  "VSwitchId": "vsw-*********************",
  "DBClusterDescription": "test",
  "Expired": "false",
  "PayType": "Prepaid",
  "StoragePayType": "Prepaid",
  "LockMode": "Unlock",
  "SearchStorageUsed": 3012558848,
  "SearchCompressStorageUsed": 15529410560,
  "StorageSpace": 50,
  "DBVersionStatus": "Stable",
  "CreationTime": "2020-08-14T05:58:42Z",
  "SQLSize": 0,
  "InodeTotal": 6291456,
  "InodeUsed": 4194304,
  "BlktagTotal": 7864320,
  "BlktagUsed": 5242880,
  "RegionId": "cn-hangzhou",
  "ExpireTime": "2020-11-14T16:00:00Z",
  "SubCategory": "Exclusive",
  "IsProxyLatestVersion": false,
  "StorageType": "HighPerformance",
  "ServerlessType": "SteadyServerless",
  "StrictConsistency": "ON",
  "ProxyCpuCores": "4",
  "ProxyStandardCpuCores": "2",
  "ProxyType": "Exclusive",
  "ProxyStatus": "Running",
  "ProxyServerlessType": "SteadyServerless",
  "Architecture": "X86",
  "AiType": "DLNode",
  "ProvisionedIops": "2500",
  "AiCreatingTime": "2024-03-13T01:20:28Z",
  "SupportInstantSwitchWithImci": "ON",
  "Orca": "ON",
  "SourceDBCluster": "pc-pz51ziv48317b2880",
  "RestoreType": "RestoreByTime",
  "RestoreDataPoint": "2179639137",
  "SourceRegionId": "cn-beijing",
  "ImciAutoIndex": "OFF",
  "AutoUpgradeMinorVersion": "Manual",
  "BurstingEnabled": "false",
  "RowCompression": "OFF\n",
  "ImperceptibleSwitch": "true",
  "StorageUsed": 3012558848,
  "CompressStorageUsed": 15529410560,
  "DBClusterStatus": "Running",
  "Branch": {
    "ParentInsName": "pc-2bbb22b2bb22bb222",
    "BranchTime": "2026-01-01T00:00:00Z",
    "BranchLsn": "2/2",
    "ChildBranch": [
      {
        "InsName": "pc-2bbb22b2bb22bb222",
        "DBClusterDescription": "test",
        "BranchTime": "2026-01-01T00:00:00Z",
        "BranchLsn": "2/2",
        "HasChild": false
      }
    ]
  },
  "ColumnTable": "OFF",
  "ConnectionResourceQuota": 0,
  "ConnectionResourceUsed": 0,
  "StorageUpperBound": 800,
  "StorageAutoScale": "Enable"
}

Error codes

HTTP status code

Error code

Error message

Description

400 InvalidDBClusterId.Malformed The specified parameter DBClusterId is not valid.
403 Forbidden.RAM User not authorized to operate on the specified resource, or this API does not support RAM.
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.