All Products
Search
Document Center

PolarDB:DescribeBudgetPolicies

Last Updated:Oct 22, 2026

Queries budget policies.

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

get

*All Resource

*

None None

Request syntax

POST  HTTP/1.1

Request parameters

Parameter

Type

Required

Description

Example

BudgetPolicyId

string

No

The ID of the budget policy.

023aacc1effc4b56bb154bfbec6baxxx

PageSize

integer

No

The number of entries per page. Valid values:

  • 30

  • 50

  • 100

Default value: 30.

30

PageNumber

integer

No

The page number.

1

GwClusterId

string

Yes

The gateway instance ID.

pg-xxxxxxx

Status

string

No

The status of the policy. Valid values:

  • Enabled: Enabled.

  • Disenabled: Disabled.

Enabled

BudgetDimensionType

string

No

The type of the policy. Valid values:

  • ConsumerGroup: Total budget for consumer groups.

  • Consumer: Total budget for consumers.

ConsumerGroup

BudgetDimensionRefId

string

No

The ID of the dimension object. This parameter is required when BudgetDimensionType is set to ConsumerGroup or Consumer.

cg-p3gk2oh55c**

RegionId

string

No

The region ID.

cn-beijing

ScopeRefName

string

No

The name of the object associated with the scope of the budget policy.

test-group

Response elements

Element

Type

Description

Example

object

Schema of Response

RequestId

string

Id of the request

24A1990B-4F6E-482B-B8CB-75C612******

TotalRecordCount

integer

The total number of records.

2

PageRecordCount

integer

The number of records on the current page.

1

PageNumber

integer

The page number.

1

PageSize

integer

The number of entries per page. Valid values: 30, 50, and 100.

Default value: 30.

30

Items

array<object>

The list of budget policies.

object

The budget policy object.

BudgetPolicyId

string

The ID of the budget policy.

023aacc1effc4b56bb154bfbec6ba9**

GwClusterId

string

The gateway instance ID.

pg-xxxxxxxx

Status

string

The status of the policy. Valid values:

  • Enabled: Enabled.

  • Disenabled: Disabled.

Enabled

BudgetType

string

The budget type. Valid values:

  • GlobalTotal: Global total budget.

  • ConsumerTotal: Total budget for consumers.

  • ConsumerGroupTotal: Total budget for consumer groups.

GlobalTotal

BudgetDimensionType

string

The type of the policy. Valid values:

  • ConsumerGroup: Total budget for consumer groups.

  • Consumer: Total budget for consumers.

ConsumerGroup

BudgetDimensionRefId

string

The ID of the dimension object. This parameter is required when BudgetDimensionType is set to ConsumerGroup or Consumer.

cg-p3gk2oh55c**

ResetDayOfMonth

string

The day of the month when the budget is reset (1 to 28).

2

BudgetPoints

string

The budget points.

10000

AlertThresholdPct

string

The alert threshold percentage (0 to 100).

80

UsedPoints

integer

The number of used points.

10

GmtCreated

string

The creation time.

2025-03-19T14:13:53+08:00

GmtModified

string

The update time.

2025-04-08T10:43:28+08:00

AlertTriggered

boolean

Indicates whether the alert threshold is triggered.

false

Exceeded

string

Indicates whether the quota is exceeded.

false

Examples

Success response

JSON format

{
  "RequestId": "24A1990B-4F6E-482B-B8CB-75C612******",
  "TotalRecordCount": 2,
  "PageRecordCount": 1,
  "PageNumber": 1,
  "PageSize": 30,
  "Items": [
    {
      "BudgetPolicyId": "023aacc1effc4b56bb154bfbec6ba9**",
      "GwClusterId": "pg-xxxxxxxx",
      "Status": "Enabled",
      "BudgetType": "GlobalTotal",
      "BudgetDimensionType": "ConsumerGroup ",
      "BudgetDimensionRefId": "cg-p3gk2oh55c**",
      "ResetDayOfMonth": "2",
      "BudgetPoints": "10000",
      "AlertThresholdPct": "80",
      "UsedPoints": 10,
      "GmtCreated": "2025-03-19T14:13:53+08:00",
      "GmtModified": "2025-04-08T10:43:28+08:00",
      "AlertTriggered": false,
      "Exceeded": "false"
    }
  ]
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.