CreateBudgetPolicy
Creates a budget policy.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
polardb:CreateBudgetPolicy |
create |
*All Resource
|
None | None |
Request syntax
POST HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| GwClusterId |
string |
Yes |
The gateway cluster ID. |
pg-xxxxxxx |
| BudgetType |
string |
Yes |
The budget type. Valid values:
|
ConsumerTotal |
| BudgetDimensionRefId |
string |
No |
The ID of the dimension object. This parameter is required if |
mi-xxxxx |
| ResetDayOfMonth |
string |
Yes |
The day of the month on which the budget resets. Valid values: 1 to 28. |
1 |
| BudgetPoints |
string |
Yes |
The number of budget points. |
1000 |
| AlertThresholdPct |
string |
No |
The alert threshold, as a percentage. Valid values: 0 to 100. |
10 |
| RegionId |
string |
No |
The region ID. |
cn-beijing |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The returned data. |
||
| RequestId |
string |
The request ID. |
3E5CD764-FCCA-5C9C-838E-20E0DE84B2AF |
| GwClusterId |
string |
The gateway cluster ID. |
pg-xxxxxxx |
| BudgetPolicyId |
string |
The budget policy ID. |
05a5a8603df444a8a605af712ffexxx |
Examples
Success response
JSON format
{
"RequestId": "3E5CD764-FCCA-5C9C-838E-20E0DE84B2AF",
"GwClusterId": "pg-xxxxxxx",
"BudgetPolicyId": "05a5a8603df444a8a605af712ffexxx"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.