Queries the total usage data of reserved instances or storage capacity units (SCUs).
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
bssapi:DescribeResourceUsageTotal |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| StartPeriod |
string |
Yes |
The beginning of the time range to query. Specify the time in the yyyy-MM-dd HH:mm:ss format. The specified time is included in the time range. |
2021-01-01 00:00:00 |
| EndPeriod |
string |
No |
The end of the time range to query. Specify the time in the yyyy-MM-dd HH:mm:ss format. The specified time is excluded from the time range. If you do not specify this parameter, this parameter is set to the current time. |
2021-01-02 00:00:00 |
| PeriodType |
string |
Yes |
The time granularity at which the data is queried. Valid values: MONTH, DAY, and HOUR. Valid values:
|
HOUR |
| BillOwnerId |
integer |
No |
The ID of the account whose data you want to query. If you do not specify this parameter, the data of the current account and its linked accounts is queried. To query the data of a linked account, specify the ID of the linked account. You can specify only one account ID. |
123745698925000 |
| ResourceType |
string |
Yes |
The type of the resource plan. Valid values: RI and SCU. Valid values:
|
RI |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
||
| Code |
string |
The response code. |
Success |
| Message |
string |
The returned message. If the request was successful, a success message is returned. If the request failed, an error message is returned. |
Successful! |
| RequestId |
string |
The request ID. |
364C7C81-5E5E-51A0-B738-1969D2671B05 |
| Success |
boolean |
Indicates whether the request was successful. |
True |
| Data |
object |
The queried data. |
|
| PeriodCoverage |
array<object> |
The usage of resource plans in the specified period. |
|
|
object |
|||
| UsagePercentage |
number |
The usage of resource plans. |
0.1 |
| Period |
string |
The period. |
2021071500 |
| TotalUsage |
object |
The total usage of resource plans. |
|
| PostpaidCost |
number |
The total costs of pay-as-you-go instances. |
200 |
| SavedCost |
number |
The total savings. |
100 |
| UsagePercentage |
number |
The total usage of resource plans. |
1 |
| PotentialSavedCost |
number |
The total potential savings. |
100 |
| ReservationCost |
number |
The fee of purchased resource plans. |
10 |
Examples
Success response
JSON format
{
"Code": "Success",
"Message": "Successful!",
"RequestId": "364C7C81-5E5E-51A0-B738-1969D2671B05",
"Success": true,
"Data": {
"PeriodCoverage": [
{
"UsagePercentage": 0.1,
"Period": "2021071500"
}
],
"TotalUsage": {
"PostpaidCost": 200,
"SavedCost": 100,
"UsagePercentage": 1,
"PotentialSavedCost": 100,
"ReservationCost": 10
}
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.