Queries a summary of cost budgets.
Operation description
This OpenAPI is in beta and available only to whitelisted users. Excessive calls may cause performance issues, such as response timeouts.
Try it now
Test
RAM authorization
Action | Access level | Resource type | Condition key | Dependent action |
bss:DescribeCostBudgetsSummary | get | *All Resource
| None | None |
Request parameters
Parameter | Type | Required | Description | Example |
BudgetName | string | No | The name of the budget. Supports fuzzy search. | 全年预算 |
BudgetStatus | string | No | The status of the budget. If you do not specify this parameter, budgets in all statuses are returned. Valid values:
| notOverdue |
BudgetType | string | No | The type of the budget. If you do not specify this parameter, budgets of all types are returned. Valid values:
| cost |
NextToken | string | No | The token that is used to retrieve the next page of results. Set this parameter to the NextToken value that is returned in the response to the previous request. If you do not specify this parameter, the query starts from the first page. | eyJwYWdlTnVtIjoyLCJwYWdlU2l6ZSI6NH0= |
MaxResults | integer | No | The maximum number of items to return. Valid values: 1 to 10. Default value: 10. | 5 |
Response elements
Element | Type | Description | Example |
object | The response object. | ||
RequestId | string | The ID of the request. | 3BFC23FE-A182-4D96-A1E4-7521B30B8E43 |
Success | boolean | Indicates whether the request was successful. | true |
Code | string | The status code. | Success |
Message | string | The error message. | Successful! |
| Data | object | The data that is returned. | |
NextToken | string | The token for the next page of results. | eyJwYWdlTnVtIjoyLCJwYWdlU2l6ZSI6NH0= |
MaxResults | integer | The maximum number of entries returned on the current page. | 5 |
TotalCount | integer | The total number of entries. | 20 |
| Items | array<object> | The list of items. | |
object | The list of budgets. | ||
BudgetName | string | The name of the budget. | 全年预算 |
BudgetStatus | string | The status of the budget. | overdue |
BudgetType | string | The type of the budget. | cost |
Budget | object | Information about the budget.
| { "budgetCycleType": "monthly", "budgetMemo": "", "totalBudgetAmount": 220 } |
CalculatedValues | object | Information about the estimate-to-actual comparison.
| { "actualConsumeSum": 88.6, "actualAddForecastedAmount": 89.6, "actualAndBudgetComparison": "20.73%" } |
ConsumePeriod | object | Information about the billing cycle.
| { "consumePeriodBegin": "2022-10", "consumePeriodEnd": "2022-11" } |
HostId | string | The website. | cn |
Examples
Success response
JSON format
{
"RequestId": "3BFC23FE-A182-4D96-A1E4-7521B30B8E43",
"Success": true,
"Code": "Success",
"Message": "Successful!",
"Data": {
"NextToken": "eyJwYWdlTnVtIjoyLCJwYWdlU2l6ZSI6NH0=",
"MaxResults": 5,
"TotalCount": 20,
"Items": [
{
"BudgetName": "全年预算",
"BudgetStatus": "overdue",
"BudgetType": "cost",
"Budget": {
"budgetCycleType": "monthly",
"budgetMemo": "",
"totalBudgetAmount": 220
},
"CalculatedValues": {
"actualConsumeSum": 88.6,
"actualAddForecastedAmount": 89.6,
"actualAndBudgetComparison": "20.73%"
},
"ConsumePeriod": {
"consumePeriodBegin": "2022-10",
"consumePeriodEnd": "2022-11"
}
}
],
"HostId": "cn"
}
}Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.