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.

Debugging

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 1.1.1.0/24

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 1.1.1.1

The IP address of the on-demand instance.

Examples

Sample requests

http(s)://[Endpoint]/? Action=DescribeTopTraffic
&EndTime=1563445054
&InstanceId=ddosbgp-xxx
&StartTime=1560853054
&<Common request parameters>

Sample success responses

XML format

<DescribeTopTrafficResponse>
      <code>200</code>
      <requestId>CF33B4C3-196E-4015-AADD-5CAD00057B80</requestId>
      <success>true</success>
      <data>
            <Pps>100000</Pps>
            <Bps>2919212</Bps>
            <Ip>1.1.1.1</Ip>
            <AttackBps>0</AttackBps>
            <AttackPps>0</AttackPps>        
      </data>
</DescribeTopTrafficResponse>

JSON format

{  
    "code": 200,
    "Total":"1",
    "requestId": "CF33B4C3-196E-4015-AADD-5CAD00057B80",
    "success": true,
    "data": {
            "Pps": 100000,
            "Bps": 2919212,
            "Ip": "1.1.1.1",
            "AttackBps":0,
            "AttackPps":0
            }
    }

Error codes

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