DescribeCostBudgetsSummary
Queries a summary of cost budgets.
Operation description
This API 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 budget name. Supports fuzzy search. |
|
|
BudgetStatus |
string |
No |
The budget status. If not specified, all statuses are returned. Valid values:
|
notOverdue |
|
BudgetType |
string |
No |
The budget type. If not specified, all types are returned. Valid values:
|
cost |
|
NextToken |
string |
No |
The pagination token. Set this to the NextToken value from the previous response. If not specified, 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 request ID. |
3BFC23FE-A182-4D96-A1E4-7521B30B8E43 |
|
Success |
boolean |
Whether the request was successful. |
true |
|
Code |
string |
The status code. |
Success |
|
Message |
string |
The error message. |
Successful! |
| Data |
object |
The returned data. |
|
|
NextToken |
string |
The token for the next page of results. |
eyJwYWdlTnVtIjoyLCJwYWdlU2l6ZSI6NH0= |
|
MaxResults |
integer |
The maximum number of entries per 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 budget name. |
|
|
BudgetStatus |
string |
The budget status. |
overdue |
|
BudgetType |
string |
The budget type. |
cost |
|
Budget |
object |
Budget details.
|
{ "budgetCycleType": "monthly", "budgetMemo": "", "totalBudgetAmount": 220 } |
|
CalculatedValues |
object |
Estimate-to-actual comparison data.
|
{ "actualConsumeSum": 88.6, "actualAddForecastedAmount": 89.6, "actualAndBudgetComparison": "20.73%" } |
|
ConsumePeriod |
object |
Billing cycle details.
|
{ "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.