Queries a list of DDoS attack events.
Operation description
You can call this operation to query a paginated list of DDoS attack events that occurred within a specified time range. A DDoS attack event includes details such as the start and end times, attack type, attacked object, and the peak attack traffic. The peak attack traffic can be the peak bandwidth or packet forwarding rate.
QPS limits
This operation has a queries per second (QPS) limit of 10 for each user. If you exceed this limit, API calls are throttled, which can affect your business. Make sure to call this operation within this limit.
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 event types. Separate them with commas (,). If you do not set this parameter, all types of attack events are queried. |
defense |
| StartTime |
integer |
Yes |
The start time of the DDoS attack events to query. The operation queries events that occurred after this time. This is a UNIX timestamp. Unit: seconds. |
1609430400 |
| EndTime |
integer |
Yes |
The end time of the DDoS attack events to query. The operation queries events that occurred before this time. This is a UNIX timestamp. Unit: seconds. |
1640966399 |
| PageNumber |
integer |
Yes |
The number of the page to return for a paged query. |
1 |
| PageSize |
integer |
Yes |
The number of attack events to return on each page. |
10 |
In addition to the parameters specific to this operation, you must also specify common request parameters. For more information, 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 queried attack events. |
1 |
| RequestId |
string |
The ID of the request. |
25D83ED5-28CB-5683-9CF7-AECE521F3005 |
| AttackEvents |
array<object> |
The list of attack events. |
|
|
object |
|||
| EndTime |
integer |
The end time of the attack. This is a UNIX timestamp. Unit: seconds. |
1634546030 |
| StartTime |
integer |
The start time of the attack. This 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: Mbps. |
101899 |
| Ip |
string |
The attacked object. The value of this parameter varies based on the value of EventType.
|
203.107.XX.XX |
| Area |
string |
The region from which the attack was initiated. Valid values:
|
cn |
| Port |
string |
The attacked port. Note
This parameter is not returned if EventType is set to web-cc. |
80 |
| Pps |
integer |
The peak packet forwarding rate of the attack traffic. Unit: packets per second (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.