Queries available bandwidth metering methods.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ens:DescribeBandWithdChargeType |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
No parameters required.
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| BandWithTypeInfo |
string |
The information about the metering method. |
{ "BandWidthName": "Month95Peak bandwidth", "BandWidthType": "95BandwidthByMonth" } |
| ChargeContractType |
string |
The metering type.
|
ChargeByGrade |
| ChargeCycleInfo |
string |
The metering cycle. Currently, this parameter is empty in the response. |
{null} |
| Code |
integer |
The returned service code. A value of 0 indicates that the operation was successful. |
0 |
| RequestId |
string |
The request ID. |
791049FD-49CE-4667-BD6C-F23094DEDA7A |
Examples
Success response
JSON format
{
"BandWithTypeInfo": "{ \"BandWidthName\": \"Month95Peak bandwidth\", \t\t\t\"BandWidthType\": \"95BandwidthByMonth\" \t\t}",
"ChargeContractType": "ChargeByGrade",
"ChargeCycleInfo": "{null}",
"Code": 0,
"RequestId": "791049FD-49CE-4667-BD6C-F23094DEDA7A"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | MissingParameter | The input parameter domainName that is mandatory for processing this request is not supplied. | |
| 400 | InstanceIdNotFound | The input parameter instancdId that is not found. | The specified instance ID does not exist. |
| 400 | NoPermission | Permission denied. | |
| 400 | CallInterface | Call Interface Happen Error. | An error occurred when you call the operation. |
| 400 | InvalidParameter.%s | The specified field %s invalid. Please check it again. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.