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 instance ID. |
pg-xxxxxxx |
| BudgetType |
string |
Yes |
The budget type. Valid values:
|
GlobalTotal |
| BudgetDimensionRefId |
string |
No |
The ID of the dimension object. This parameter is required when BudgetType is set to ConsumerGroupTotal or Consumer. |
mi-xxxxx |
| ResetDayOfMonth |
string |
Yes |
The day of the month when the budget is reset (1 to 28). |
1 |
| BudgetPoints |
string |
Yes |
The budget points. |
1000 |
| AlertThresholdPct |
string |
No |
The alert threshold percentage (0 to 100). |
10 |
| RegionId |
string |
No |
The region ID. |
cn-beijing |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| RequestId |
string |
The request ID. |
3E5CD764-FCCA-5C9C-838E-20E0DE84B2AF |
| GwClusterId |
string |
The gateway instance ID. |
pg-xxxxxxx |
| BudgetPolicyId |
string |
The ID of the budget policy. |
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.