All Products
Search
Document Center

:DescribeTopTraffic

Last Updated:Jun 09, 2023

Queries the top N IP addresses from which the most traffic is forwarded by an on-demand instance within a specific period of time.

Operation Description

You can call the DescribeTopTraffic operation to query the top N IP addresses from which the most traffic is forwarded by an on-demand instance within a specific period.

Limits

You can call this operation up to 10 times per second per account. If the number of the calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
InstanceIdstringYes

The ID of the on-demand instance.

NoteYou can call the DescribeOnDemandInstance operation to query the IDs of all on-demand instances.
ddosbgp-cn-z2q1qzxb****
IpnetstringNo

The CIDR block of the on-demand instance that you want to query.

47.XX.XX.0/24
StartTimestringYes

The beginning of the time range to query. This value is a UNIX timestamp. Unit: seconds.

1560853054
EndTimestringYes

The end of the time range to query. This value is a UNIX timestamp. Unit: seconds.

1563445054
RnintegerNo

The number of IP addresses from which the most traffic is forwarded. Default value: 1, which indicates the IP address from which the most traffic is forwarded.

1
PageNointegerNo

The number of the page to return. Default value: 1.

1
PageSizeintegerNo

The number of entries to return on each page. Default value: 10. Maximum value: 50.

10
ResourceGroupIdstringNo

The ID of the resource group to which the on-demand instance belongs in Resource Management.

If you do not specify this parameter, the instance belongs to the default resource group.

rg-acfm2pz25js****
RegionIdstringNo

The region ID of the on-demand instance.

NoteYou can call the DescribeRegions operation to query the most recent region list.
cn-zhangjiakou

All Alibaba Cloud API operations must include common request parameters. For more information about common request parameters, see Common parameters.

For more information about sample requests, see the "Examples" section of this topic.

Response parameters

ParameterTypeDescriptionExample
object
Totallong

The total number of entries returned.

1
RequestIdstring

The ID of the request.

CF33B4C3-196E-4015-AADD-5CAD00057B80
TrafficListobject []

The information about the traffic that is forwarded by the on-demand instance.

Ipstring

The IP address from which the most traffic is forwarded by the on-demand instance.

47.XX.XX.0
AttackPpsinteger

The number of attack data packets. Unit: packets per second (pps).

0
Bpsinteger

The total traffic. Unit: Kbit/s.

2919212
Ppsinteger

The total number of data packets. Unit: pps.

100000
AttackBpsinteger

The attack traffic. Unit: Kbit/s.

0

Examples

Sample success responses

JSONformat

{
  "Total": 1,
  "RequestId": "CF33B4C3-196E-4015-AADD-5CAD00057B80",
  "TrafficList": [
    {
      "Ip": "47.XX.XX.0",
      "AttackPps": 0,
      "Bps": 2919212,
      "Pps": 100000,
      "AttackBps": 0
    }
  ]
}

Error codes

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