Mengkueri Kebijakan anggaran
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
polardb:DescribeBudgetPolicies |
get |
*全部资源
|
None | None |
Sintaks permintaan
POST HTTP/1.1
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| BudgetPolicyId |
string |
No |
ID Kebijakan anggaran. |
023aacc1effc4b56bb154bfbec6baxxx |
| PageSize |
integer |
No |
Jumlah entri per halaman. Nilai valid:
Nilai default adalah 30. |
30 |
| PageNumber |
integer |
No |
Nomor halaman. |
1 |
| GwClusterId |
string |
Yes |
ID Instans gerbang. |
pg-xxxxxxx |
| Status |
string |
No |
Status Kebijakan. Nilai valid:
|
Enabled |
| BudgetDimensionType |
string |
No |
Tipe Kebijakan. Nilai valid:
|
ConsumerGroup |
| BudgetDimensionRefId |
string |
No |
ID kelompok konsumen atau pengguna. Parameter ini diperlukan jika BudgetDimensionType diatur ke ConsumerGroup atau Consumer. |
cg-p3gk2oh55c** |
| RegionId |
string |
No |
ID Wilayah. |
cn-beijing |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
The response object. |
||
| RequestId |
string |
The request ID. |
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 records to return on each page. Valid values: 30, 50, and 100. Default value: 30. |
30 |
| Items |
array<object> |
A list of budget policies. |
|
|
object |
The budget policy object. |
||
| BudgetPolicyId |
string |
The budget policy ID. |
023aacc1effc4b56bb154bfbec6ba9** |
| GwClusterId |
string |
The gateway cluster ID. |
pg-xxxxxxxx |
| Status |
string |
The status of the policy. Valid values:
|
Enabled |
| BudgetType |
string |
The budget type. Valid values:
|
GlobalTotal |
| BudgetDimensionType |
string |
The dimension of the budget policy. Valid values:
|
ConsumerGroup |
| BudgetDimensionRefId |
string |
The ID of the dimension object. This parameter is required when |
cg-p3gk2oh55c** |
| ResetDayOfMonth |
string |
The day of the month (1 to 28) on which the budget is reset. |
2 |
| BudgetPoints |
string |
The number of budget points. |
10000 |
| AlertThresholdPct |
string |
The alert threshold, as a percentage (0 to 100). |
80 |
| UsedPoints |
integer |
The number of used points. |
10 |
| GmtCreated |
string |
The time when the policy was created. |
2025-03-19T14:13:53+08:00 |
| GmtModified |
string |
The time when the policy was last modified. |
2025-04-08T10:43:28+08:00 |
| AlertTriggered |
boolean |
Indicates whether the alert threshold was triggered. |
false |
| Exceeded |
string |
Indicates whether the budget was exceeded. |
false |
Contoh
Respons sukses
JSONformat
{
"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"
}
]
}
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.