Queries attack events.
Debugging
Authorization information
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
StartTime | string | Yes | The beginning of the time range to query. Specify the time in the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time must be in UTC. | 2023-03-27T16:00:00Z |
EndTime | string | No | The end of the time range to query. Specify the time in the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time must be in UTC. The end time must be later than the start time. The maximum time range is 31 days. | 2023-04-25T15:59:59Z |
EventType | string | No | The type of the DDoS attack event to be queried. Valid values:
If you do not configure this parameter, DDoS attack events of all types are queried. | web-cc |
PageNumber | integer | Yes | The page number. Default value: 1. Value range: 1 to 10,000. | 1 |
PageSize | integer | No | The number of entries to return on each page. Default value: 10. Valid values: 5, 10, and 20. | 10 |
Response parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "D73A4243-CFBD-5110-876F-09237E77ECBD",
"Total": 20,
"PageNumber": 1,
"PageSize": 10,
"DataList": [
{
"Target": "example.com",
"StartTime": "2022-10-09T10:03:31Z",
"EndTime": "2022-11-26T15:59:00Z",
"EventType": "web-cc",
"Bps": 800,
"Pps": 12000,
"Cps": 50,
"Qps": 7692,
"EventId": "28069"
}
]
}
Error codes
HTTP status code | Error code | Error message | Description |
---|---|---|---|
400 | InvalidParameter | The specified parameter is invalid. | A parameter is set to an invalid value. |
500 | InternalError | An internal error occurred; please try again later. | An internal error occurred. Try again later. If the error persists, submit a ticket. |
For a list of error codes, visit the Service error codes.