All Products
Search
Document Center

PolarDB:DescribeBudgetUsage

Last Updated:Nov 05, 2026

Queries the used quota, statistical window, and associated budget policies for a PolarDB gateway instance by budget dimension.

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

No authorization for this operation. If you encounter issues with this operation, contact technical support.

Request syntax

POST  HTTP/1.1

Request parameters

Parameter

Type

Required

Description

Example

GwClusterId

string

No

The ID of the gateway instance to query.

pc-123

BudgetDimensionType

string

No

The budget dimension type.

cluster

BudgetDimensionRefId

string

No

The budget dimension reference ID.

ref-001

RegionId

string

No

The region ID of the gateway instance.

cn-hangzhou

Response elements

Element

Type

Description

Example

object

Schema of Response

RequestId

string

The request ID.

2921D843-433A-5FB3-A03B-4EC093B219F8

GwClusterId

string

The ID of the gateway instance.

pc-123

DimensionType

string

The dimension type of the current budget.

cluster

DimensionRefId

string

The dimension reference ID of the current budget.

ref-001

UsedPoints

string

The number of budget points used in the current statistical window.

5000

AlertTriggered

string

Indicates whether a budget alert is triggered.

false

Exceeded

string

Indicates whether the budget is exceeded.

false

WindowStartTime

string

The start time of the budget statistical window in RFC 3339 UTC format.

2025-01-01T00:00:00Z

WindowEndTime

string

The end time of the budget statistical window in RFC 3339 UTC format.

2025-01-31T23:59:59Z

GmtCreated

string

The creation time of the budget usage record in RFC 3339 UTC format.

2025-01-01T00:00:00Z

GmtModified

string

The last modification time of the budget usage record in RFC 3339 UTC format.

2025-01-15T12:00:00Z

Policies

array<object>

The list of associated budget policies.

object

BudgetDimensionType

string

The budget dimension type to which the policy applies.

cluster

BudgetDimensionRefId

string

The budget dimension reference ID to which the policy applies.

ref-001

BudgetPolicyId

string

The ID of the budget policy.

bp-001

BudgetType

string

The budget type.

token

ResetDayOfMonth

string

The day of the month when the budget is reset. For example, 1 indicates the first day of each month.

1

BudgetPoints

string

The number of budget points set by the policy.

10000

AlertThresholdPct

string

The usage percentage that triggers a budget alert.

0.8

Status

string

The status of the budget policy.

Active

Examples

Success response

JSON format

{
  "RequestId": "2921D843-433A-5FB3-A03B-4EC093B219F8",
  "GwClusterId": "pc-123",
  "DimensionType": "cluster",
  "DimensionRefId": "ref-001",
  "UsedPoints": "5000",
  "AlertTriggered": "false",
  "Exceeded": "false",
  "WindowStartTime": "2025-01-01T00:00:00Z",
  "WindowEndTime": "2025-01-31T23:59:59Z",
  "GmtCreated": "2025-01-01T00:00:00Z",
  "GmtModified": "2025-01-15T12:00:00Z",
  "Policies": [
    {
      "BudgetDimensionType": "cluster",
      "BudgetDimensionRefId": "ref-001",
      "BudgetPolicyId": "bp-001",
      "BudgetType": "token",
      "ResetDayOfMonth": "1",
      "BudgetPoints": "10000",
      "AlertThresholdPct": "0.8",
      "Status": "Active"
    }
  ]
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.