コスト予算ポリシーを照会します。
今すぐお試しください
テスト
RAM 認証
|
アクション |
アクセスレベル |
リソースタイプ |
条件キー |
依存アクション |
|
polardb:DescribeBudgetPolicies |
get |
*All resources.
|
なし | なし |
リクエスト構文
POST HTTP/1.1
リクエストパラメーター
|
パラメーター |
型 |
必須 / 任意 |
説明 |
例 |
| BudgetPolicyId |
string |
任意 |
予算ポリシー ID。 |
023aacc1effc4b56bb154bfbec6baxxx |
| PageSize |
integer |
任意 |
1 ページあたりのエントリ数。有効な値:
デフォルト値: 30。 |
30 |
| PageNumber |
integer |
任意 |
ページ番号。 |
1 |
| GwClusterId |
string |
必須 |
ゲートウェイインスタンス ID。 |
pg-xxxxxxx |
| Status |
string |
任意 |
ポリシーのステータス。有効な値:
|
Enabled |
| BudgetDimensionType |
string |
任意 |
ポリシーのタイプ。有効な値:
|
ConsumerGroup |
| BudgetDimensionRefId |
string |
任意 |
ディメンションオブジェクト ID。BudgetDimensionType が ConsumerGroup または Consumer に設定されている場合、このパラメーターは必須です。 |
cg-p3gk2oh55c** |
| RegionId |
string |
任意 |
リージョン ID。 |
cn-beijing |
レスポンスフィールド
|
フィールド |
型 |
説明 |
例 |
|
object |
レスポンスのスキーマ。 |
||
| RequestId |
string |
リクエストの ID。 |
24A1990B-4F6E-482B-B8CB-75C612****** |
| TotalRecordCount |
integer |
レコードの総数。 |
2 |
| PageRecordCount |
integer |
現在のページのレコード数。 |
1 |
| PageNumber |
integer |
ページ番号。 |
1 |
| PageSize |
integer |
1 ページあたりのエントリ数。有効な値: 30、50、100。 デフォルト値: 30。 |
30 |
| Items |
array<object> |
予算ポリシーのリスト。 |
|
|
object |
予算ポリシーオブジェクト。 |
||
| BudgetPolicyId |
string |
予算ポリシー ID。 |
023aacc1effc4b56bb154bfbec6ba9** |
| GwClusterId |
string |
ゲートウェイインスタンス ID。 |
pg-xxxxxxxx |
| Status |
string |
ポリシーのステータス。有効な値:
|
Enabled |
| BudgetType |
string |
予算タイプ。有効な値:
|
GlobalTotal |
| BudgetDimensionType |
string |
ポリシーのタイプ。有効な値:
|
ConsumerGroup |
| BudgetDimensionRefId |
string |
ディメンションオブジェクト ID。BudgetDimensionType が ConsumerGroup または Consumer に設定されている場合、このパラメーターは必須です。 |
cg-p3gk2oh55c** |
| ResetDayOfMonth |
string |
予算がリセットされる月の日。有効な値: 1~28。 |
2 |
| BudgetPoints |
string |
予算ポイント。 |
10000 |
| AlertThresholdPct |
string |
アラートのしきい値パーセンテージ。有効な値: 0~100。 |
80 |
| UsedPoints |
integer |
使用済みポイント数。 |
10 |
| GmtCreated |
string |
ポリシーが作成された時間。 |
2025-03-19T14:13:53+08:00 |
| GmtModified |
string |
ポリシーが最後に変更された時間。 |
2025-04-08T10:43:28+08:00 |
| AlertTriggered |
boolean |
アラートのしきい値がトリガーされたかどうかを示します。 |
false |
| Exceeded |
string |
クォータを超過したかどうかを示します。 |
false |
例
成功レスポンス
JSONJSON
{
"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"
}
]
}
エラーコード
完全なリストについては、「エラーコード」をご参照ください。
変更履歴
完全なリストについては、「変更履歴」をご参照ください。