All Products
Search
Document Center

PolarDB:DescribeDBClusterPrice

Last Updated:Dec 03, 2026

Queries the pricing 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:DescribeDBClusterPrice

get

*DBCluster

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

None None

Request parameters

Parameter

Type

Required

Description

Example

DBNodeClass

string

No

The node specifications. Required for the BUY scenario. Example format: polar.mysql.x4.large.

polar.mysql.x4.large

DBType

string

No

The database engine type. Required for the BUY scenario. Valid values: MySQL, PostgreSQL, and Oracle.

MySQL

DBVersion

string

No

The database engine version. Required for the BUY scenario. Valid values for MySQL: 5.6, 5.7, and 8.0. Valid values for PostgreSQL: 11 and 14. Valid values for Oracle: 11 and 14.

8.0

PayType

string

No

The billing method. Required for the BUY and CONVERT scenarios. Valid values: Prepaid (subscription) and Postpaid (pay-as-you-go).

Prepaid

OrderType

string

Yes

The order type. Valid values: BUY (new purchase), CONVERT (billing method change), RENEW (renewal), UPGRADE (upgrade or add nodes), and DOWNGRADE (downgrade or delete nodes).

BUY

RegionId

string

Yes

The region ID.

cn-hangzhou

ZoneId

string

No

The zone ID. Recommended for the BUY scenario.

cn-hangzhou-h

DBNodeNum

integer

No

The number of nodes. Valid for the BUY scenario. This includes read/write nodes. Minimum value: 1. Default value: 1.

2

CreationCategory

string

No

The cluster edition. Valid values: Normal (Cluster Edition), Basic (Single Node), ArchiveNormal (Archive Edition), SENormal (Standard Edition), and NormalMultimaster (Multi-master Cluster).

Normal

StorageSpace

string

No

The storage space, in GB. Used for prepaid storage or storage specification change scenarios.

50

StorageType

string

No

The storage type. Valid values: PSL5 (high-performance), PSL4 (standard), ESSDPL0, ESSDPL1, ESSDPL2, ESSDPL3, and ESSDAUTOPL.

PSL5

StorageChargeType

string

No

The storage billing method. Valid values: Prepaid (subscription) and Postpaid (pay-as-you-go).

Prepaid

ProvisionedIops

string

No

The provisioned IOPS. Used for the Standard Edition (SENormal) scenario.

1000

HotStandbyCluster

string

No

Specifies whether to enable the hot standby cluster. Valid values: ON (enable) and OFF (disable). Valid for the BUY and specification change scenarios.

ON

ServerlessType

string

No

The Serverless type. Valid values: AgileServerless.

AgileServerless

DBClusterId

string

No

The cluster ID. Required for non-BUY scenarios.

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

UsedTime

string

No

The purchase duration. Used in combination with Period. Valid for the BUY, CONVERT, and RENEW scenarios when the billing method is Prepaid.

1

Period

string

No

The purchase cycle. Valid values: Month and Year.

Month

DBNodes

array<object>

No

The list of nodes for heterogeneous specification changes. Used in specification change scenarios to specify the target specifications for each node.

object

No

The node information details.

DBNodeId

string

No

The node ID.

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

DBNodeClass

string

No

The target node specifications.

polar.mysql.x4.large

ModifyType

string

No

The specification change direction. Valid values: ADD (add nodes), DELETE (delete nodes), UPGRADE (upgrade), DOWNGRADE (downgrade), HOT_STANDBY (hot standby change), STORAGE (storage space change), and STORAGE_TYPE (storage type change).

UPGRADE

DBNodeIds

array

No

The list of node IDs to be deleted. Used when ModifyType is set to DELETE.

["pi-***************"]

string

No

The node ID.

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

Response elements

Element

Type

Description

Example

object

RequestId

string

The request ID.

7E2FE3BB-C677-5FF9-9FC5-XXX

ShowDiscount

boolean

Specifies whether discounts are allowed.

False

OrderType

string

The order type. Valid values:

  • BUY: new purchase.

  • UPGRADE: specification change.

  • RENEW: renewal.

  • CONVERT: billing method change.

BUY

PriceInfo

object

The detailed pricing information.

Currency

string

The currency unit.

CNY

OriginalPrice

number

The original price.

1099.0

TradePrice

number

The final price, which is the original price minus the discount.

165.0

DiscountPrice

number

The discount.

1978.2

RuleIds

object

RuleId

array

The rule ID.

string

The rule ID.

[8]

Coupons

object

Coupon

array<object>

The coupon details.

object

The coupon details.

CouponNo

string

The coupon number.

779643240541

Name

string

The coupon name.

coupon

IsSelected

string

Specifies whether the coupon is selected.

false

Rules

object

Rule

array<object>

The promotion rule.

object

The promotion rule.

RuleId

integer

The rule ID.

20800740

Name

string

The rule name.

rule-xxx

Examples

Success response

JSON format

{
  "RequestId": "7E2FE3BB-C677-5FF9-9FC5-XXX",
  "ShowDiscount": true,
  "OrderType": "BUY",
  "PriceInfo": {
    "Currency": "CNY",
    "OriginalPrice": 1099,
    "TradePrice": 165,
    "DiscountPrice": 1978.2,
    "RuleIds": {
      "RuleId": [
        "[8]"
      ]
    },
    "Coupons": {
      "Coupon": [
        {
          "CouponNo": "779643240541",
          "Name": "coupon",
          "IsSelected": "false"
        }
      ]
    }
  },
  "Rules": {
    "Rule": [
      {
        "RuleId": 20800740,
        "Name": "rule-xxx"
      }
    ]
  }
}

Error codes

HTTP status code

Error code

Error message

Description

400 SYSTEM.SALE_VALIDATE_NO_SPECIFIC_CODE_FAILED 必选模块未选择 A required module is not selected.

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.