Queries the metering method for the bandwidth.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ens:DescribeBandwitdhByInternetChargeType |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| StartTime |
string |
Yes |
The beginning of the time range to query.
|
2021-11-15T16:00:00Z |
| EndTime |
string |
Yes |
The end of the time range to query.
|
2022-01-18T09:39:54Z |
| Isp |
string |
No |
The Internet service provider (ISP). Valid values:
|
unicom |
| EnsRegionId |
string |
No |
The region ID of the instance. |
cn-hangzhou-cbn-2 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| BandwidthValue |
integer |
The bandwidth. Unit: bit/s. |
123 |
| InternetChargeType |
string |
The metering method. Valid values:
You can specify only one metering method for network usage and cannot overwrite the existing metering method. |
95BandwidthByMonth |
| RequestId |
string |
The ID of the request. This parameter is a common parameter. Each request has a unique ID. You can use the ID to troubleshoot issues. |
08027633-8501-5A36-B90D-F7C38B5EC75D |
| TimeStamp |
string |
The timestamp. The time follows the ISO 8601 standard. The time is displayed in UTC. Example: 2016-10-20T04:00:00Z. |
2019-10-12T05:45:00Z |
Examples
Success response
JSON format
{
"BandwidthValue": 123,
"InternetChargeType": "95BandwidthByMonth",
"RequestId": "08027633-8501-5A36-B90D-F7C38B5EC75D",
"TimeStamp": "2019-10-12T05:45:00Z"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | NoPermission | Permission denied. | |
| 400 | InvalidParameter.%s | The specified field %s invalid. Please check it again. | |
| 400 | InsufficientEipCapacity | Insufficient EIP inventory under the specified territory. | |
| 400 | CallInterface | Call Interface Happen Error. | An error occurred when you call the operation. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.