Query the summary information of the user "Cost Management-Budget".
Operation description
This operation is in beta testing and is only available for specific users in the whitelist. Excessive calls may result in performance issues. For example, the response times out.
Debugging
Authorization information
The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action
policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:
- Operation: the value that you can use in the Action element to specify the operation on a resource.
- Access level: the access level of each operation. The levels are read, write, and list.
- Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
- The required resource types are displayed in bold characters.
- If the permissions cannot be granted at the resource level,
All Resources
is used in the Resource type column of the operation.
- Condition Key: the condition key that is defined by the cloud service.
- Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
Operation | Access level | Resource type | Condition key | Associated operation |
---|---|---|---|---|
bss:DescribeCostBudgetsSummary | Read |
|
| none |
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
BudgetName | string | No | The name of the budget. Fuzzy match is supported. | Annual budget |
BudgetStatus | string | No | The status of the budget. Valid values: overdue and notOverdue. A value of overdue specifies to filter expired budgets. A value of notOverdue specifies to filter budgets that do not expire. By default, if you do not specify this parameter, information about all budgets is to be returned. | notOverdue |
BudgetType | string | No | The type of the budget. Valid values: cost, byquantity, and asset. A value of cost specifies to filter expense budgets. A value of byquantity specifies to filter budgets calculated based on the resource usage. A value of asset specifies to filter usage or coverage budgets. By default, information about all budgets is returned if you do not specify this parameter. | cost |
NextToken | string | No | The position in which the query starts. You must set this parameter to null or the token that is obtained from the previous query. Otherwise, an error is returned. If you set the NextToken parameter to null, the query starts from the beginning. The default value is null. | eyJwYWdlTnVtIjoyLCJwYWdlU2l6ZSI6NH0= |
MaxResults | integer | No | The number of entries to return on each page. Default value: 10. Maximum value: 10. Minimum value: 1. | 5 |
Response parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "3BFC23FE-A182-4D96-A1E4-7521B30B8E43",
"Success": true,
"Code": "Success",
"Message": "Successful!",
"Data": {
"NextToken": "eyJwYWdlTnVtIjoyLCJwYWdlU2l6ZSI6NH0=",
"MaxResults": 5,
"TotalCount": 20,
"Items": [
{
"BudgetName": "Annual budget\n",
"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
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|---|---|
2022-12-06 | Add Operation | see changesets |