All Products
Search
Document Center

ENS:DescribeEpnBandwitdhByInternetChargeType

Last Updated:Nov 18, 2024

Queries the metering method of the EPN bandwidth within a time period.

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

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.
OperationAccess levelResource typeCondition keyAssociated operation
ens:DescribeEpnBandwitdhByInternetChargeTypeget
*All Resources
*
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
StartTimestringYes

The beginning of the time range to query.

  • Specify the time in the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time must be in UTC.
  • If the value of the seconds place is not 00, the start time is automatically set to the next minute.
2021-12-02T16:00:00Z
EndTimestringYes

The end of the time range to query.

  • Specify the time in the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time must be in UTC.
  • If the value of the seconds place is not 00, the start time is automatically set to the next minute.
2021-12-06T15:59:59Z
IspstringNo

The Internet service provider (ISP). Valid values:

  • cmcc: China Mobile
  • telecom: China Telecom
  • unicom: China Unicom
  • multiCarrier: multi-line ISP
telecom
EnsRegionIdstringNo

The ID of the Edge Node Service (ENS) node.

cn-changsha-unicom
NetworkingModelstringNo

The networking mode. Valid values:

  • SpeedUp: intelligent acceleration network (Internet)
  • Connection: internal network
  • SpeedUpAndConnection: intelligent acceleration network and internal network
Connection

Response parameters

ParameterTypeDescriptionExample
object
BandwidthValuelong

The bandwidth. Unit: bit/s.

123
InternetChargeTypestring

The metering method. Valid values:

  • BandwidthByDay: Pay by daily peak bandwidth
  • 95BandwidthByMonth: Pay by monthly 95th percentile bandwidth
  • PayByBandwidth4thMonth: Pay by monthly fourth peak bandwidth
  • PayByBandwidth: Pay by fixed bandwidth

You can specify only one metering method for network usage and cannot overwrite the existing metering method.

BandwidthByDay
RequestIdstring

The request ID.

216BCED0-E055-5DDB-8E06-4084A62A4A44
TimeStampstring

The timestamp when the monitoring data was queried. The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC.

2019-10-12T05:45:00Z

Examples

Sample success responses

JSONformat

{
  "BandwidthValue": 123,
  "InternetChargeType": "BandwidthByDay",
  "RequestId": "216BCED0-E055-5DDB-8E06-4084A62A4A44",
  "TimeStamp": "2019-10-12T05:45:00Z"
}

Error codes

HTTP status codeError codeError messageDescription
400NoPermissionPermission denied.-
400InvalidParameter.%sThe specified field %s invalid. Please check it again.-
400InsufficientEipCapacityInsufficient EIP inventory under the specified territory.-
400CallInterfaceCall Interface Happen Error.An error occurred when you call the operation.

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
2023-12-26API Description Update. The Error code has changed. The request parameters of the API has changedView Change Details