Queries the list of DDoS attack events.
Operation description
This operation is used to query the list of DDoS attack events within a specified time range by using paging. DDoS attack events contain the following information: attack start time and end time, attack type, attacked object, and peak attack traffic (peak bandwidth or peak packet forwarding rate).
Rate limit
The single-user QPS limit for this operation is 10 calls per second. If the limit is exceeded, API calls are throttled, which may affect your business. Invoke this operation at an appropriate frequency.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
yundun-ddoscoo:DescribeDDosAllEventList |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| EventType |
string |
No |
The type of DDoS attack event to query. Valid values:
You can specify multiple types. Separate them with commas (,). If you do not set this parameter, attack events of all types are queried. |
defense |
| StartTime |
integer |
Yes |
The beginning of the time range to query. DDoS attack events that occurred after StartTime are queried. Specify a UNIX timestamp. Unit: seconds. Note
StartTime can specify only events within the last three months. |
1609430400 |
| EndTime |
integer |
Yes |
The end of the time range to query. DDoS attack events that occurred before EndTime are queried. Specify a UNIX timestamp. Unit: seconds. Note
EndTime can specify only events within the last three months. |
1640966399 |
| PageNumber |
integer |
Yes |
The page number to return in a paging query. |
1 |
| PageSize |
integer |
Yes |
The number of attack events to return on each page in a paging query. |
10 |
| Ip |
string |
No |
The IP address of the Anti-DDoS Pro or Anti-DDoS Premium instance to query. |
192.168.1.1 |
When you call this operation, you must include Alibaba Cloud common request parameters in addition to the request parameters described in this topic. For more information about common request parameters, see Common parameters.
For the request format, see the request example in the Examples section of this topic.
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| Total |
integer |
The total number of attack events returned. |
1 |
| RequestId |
string |
The request ID. |
25D83ED5-28CB-5683-9CF7-AECE521F3005 |
| AttackEvents |
array<object> |
The list of attack events. |
|
|
object |
|||
| EndTime |
integer |
The end time of the attack. The value is a UNIX timestamp. Unit: seconds. |
1634546030 |
| StartTime |
integer |
The start time of the attack. The value is a UNIX timestamp. Unit: seconds. |
1634543764 |
| EventType |
string |
The type of the DDoS attack event. Valid values:
|
cc |
| Mbps |
integer |
The peak bandwidth of the attack traffic. Unit: Mbit/s. |
101899 |
| Ip |
string |
The attacked object. The attacked object varies based on the attack event type:
|
203.107.XX.XX |
| Area |
string |
The source region of the attack. Valid values:
|
cn |
| Port |
string |
The attacked port number. Note
This parameter is not returned for web resource exhaustion attacks (EventType is web-cc). |
80 |
| Pps |
integer |
The peak packet forwarding rate of the attack traffic. Unit: pps. |
9664270 |
Examples
Success response
JSON format
{
"Total": 1,
"RequestId": "25D83ED5-28CB-5683-9CF7-AECE521F3005",
"AttackEvents": [
{
"EndTime": 1634546030,
"StartTime": 1634543764,
"EventType": "cc",
"Mbps": 101899,
"Ip": "203.107.XX.XX",
"Area": "cn",
"Port": "80",
"Pps": 9664270
}
]
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.