Queries the top N IP addresses that reroute the most traffic among on-demand instances in a specific period.

Note Anti-DDoS Origin API operations are available only for Anti-DDoS Origin Enterprise users.


OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes DescribeTopTraffic

The operation that you want to perform. Set the value to DescribeTopTraffic.

EndTime String Yes 1563445054

The end of the time range to query. Unit: seconds.

InstanceId String Yes ddosbgp-xxx

The ID of the on-demand instance.

StartTime String Yes 1560853054

The beginning of the time range to query. Unit: seconds.

Ipnet String No

The CIDR block of the on-demand instance.

Rn Integer No 1

The number of IP addresses that you want to query. Default value: 1 (to query the IP address that reroutes the most traffic).

PageNo Integer No 1

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

PageSize Integer No 10

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

ResourceGroupId String No test

The ID of the resource group.

Response parameters

Parameter Type Example Description
RequestId String CF33B4C3-196E-4015-AADD-5CAD00057B80

The ID of the request.

Total Long 1

The total number of entries returned.

TrafficList Array

Information of rerouted traffic.

Pps Integer 100000

The total number of rerouted data packets. Unit: pps.

Bps Integer 2919212

The total size of the rerouted traffic. Unit: Kbit/s.

AttackBps Integer 0

The size of attack traffic. Unit: Kbit/s.

AttackPps Integer 0

The number of attack data packets. Unit: pps.

Ip String

The IP address of the on-demand instance.


Sample requests

http(s)://[Endpoint]/? Action=DescribeTopTraffic
&<Common request parameters>

Sample success responses

XML format


JSON format

    "code": 200,
    "requestId": "CF33B4C3-196E-4015-AADD-5CAD00057B80",
    "success": true,
    "data": {
            "Pps": 100000,
            "Bps": 2919212,
            "Ip": "",

Error codes

For a list of error codes, visit the API Error Center.