All Products
Search
Document Center

Virtual Private Cloud:Describe95Traffic

Last Updated:Nov 13, 2024

Queries traffic data of a pay-by-enhanced-95th-percentile Internet Shared Bandwidth instance.

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
vpc:Describe95Trafficget
  • BandwidthPackage
    acs:vpc:{#regionId}:{#accountId}:combandwidthpackage/{#BandwidthPackageId}
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
RegionIdstringYes

The region ID of the resource.

You can call the DescribeRegions operation to query the most recent region list.

cn-hangzhou
ResourceTypestringYes

The resource type. Set the value to cbwp, which specifies Internet Shared Bandwidth.

cbwp
InstanceIdstringYes

The resource ID.

cbwp-wz9j19xrwf78fvz7*****
DaystringYes

The date in UTC+8. Format: year-month-day.

2022-10-22

Response parameters

ParameterTypeDescriptionExample
object
RequestIdstring

The request ID.

0ED8D006-F706-4D23-88ED-E11ED28DCAC0
Traffic95Summaryobject

The information returned.

InternetChargeTypestring

The metering method of the Internet Shared Bandwidth instance. Valid values:

  • PayBy95: pay-by-enhanced-95th-percentile
  • PayByBandwidth: pay-by-bandwidth
  • PayByDominantTraffic: pay-by-dominant-traffic
PayBy95
InstanceIdstring

The resource ID.

cbwp-wz9j19xrwf78fvz7*****
Bandwidthlong

The peak bandwidth of the Internet Shared Bandwidth instance. Unit: Mbit/s.

20000.0
FifthPeakBandwidthstring

The daily peak bandwidth. Unit: Mbit/s.

1064.244837773641
MinimumConsumeBandwidthstring

The guaranteed bandwidth of the Internet Shared Bandwidth instance. Unit: Mbit/s.

0.0
Traffic95DetailListarray<object>

The average bandwidth every 5 minutes in the inbound and outbound directions.

Traffic95Detailobject
Timestring

The statistical time. The value is a string.

2024-01-01T00:00:00Z
BillBandwidthstring

The sampled bandwidth value, which is the larger bandwidth value in the inbound and outbound directions within a sampling interval. Unit: Mbit/s.

118.5090322113037
OutBandwidthstring

The outbound bandwidth. Unit: Mbit/s.

96.41217480977376
InBandwidthstring

The inbound bandwidth. Unit: Mbit/s.

118.5090322113037

Examples

Sample success responses

JSONformat

{
  "RequestId": "0ED8D006-F706-4D23-88ED-E11ED28DCAC0",
  "Traffic95Summary": {
    "InternetChargeType": "PayBy95",
    "InstanceId": "cbwp-wz9j19xrwf78fvz7*****\n",
    "Bandwidth": 20000,
    "FifthPeakBandwidth": "1064.244837773641",
    "MinimumConsumeBandwidth": "0.0",
    "Traffic95DetailList": {
      "Traffic95Detail": [
        {
          "Time": "2024-01-01T00:00:00Z",
          "BillBandwidth": "118.5090322113037",
          "OutBandwidth": "96.41217480977376",
          "InBandwidth": "118.5090322113037"
        }
      ]
    }
  }
}

Error codes

HTTP status codeError codeError messageDescription
400InvalidInstance.NotFoundThe specified Instance does not exist in the specified region.The specified instance does not exist in the current region.
400IllegalParam.DayThe specified parameter day is illegal.The specified input parameter Day is invalid.
400IllegalParam.ResourceTypeInvalid Resource Type value.The ResourceType parameter is not supported or set to an invalid value.
404InvalidRegionId.NotFoundThe specified RegionId does not exist in our records.The specified region ID does not exist.

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

Change history

Change timeSummary of changesOperation
2024-08-19The Error code has changedView Change Details