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
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
InstanceId | string | Yes | 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**** |
Ipnet | string | No | The CIDR block of the on-demand instance that you want to query. | 47.XX.XX.0/24 |
StartTime | string | Yes | The beginning of the time range to query. This value is a UNIX timestamp. Unit: seconds. | 1560853054 |
EndTime | string | Yes | The end of the time range to query. This value is a UNIX timestamp. Unit: seconds. | 1563445054 |
Rn | integer | No | 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 |
PageNo | integer | No | The number of the page to return. Default value: 1. | 1 |
PageSize | integer | No | The number of entries to return on each page. Default value: 10. Maximum value: 50. | 10 |
ResourceGroupId | string | No | 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**** |
RegionId | string | No | 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
Examples
Sample success responses
JSON
format
{
"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.