Query DDoS Basic Protection Attack Records
Updated at:2025-10-16
Description
- Query DDoS basic protection attack records for a specified public IP
Request structure
Java
1GET /v{version}/ddos/{ip}/record?startTime={startTime}&marker={marker}&maxKeys={maxKeys} HTTP/1.1
2Host: eip.bj.baidubce.com
3Authorization: authorization string
Request headers
No special headers beyond common headers.
Request parameters
| Parameter name | Types | Whether required | Parameter location | Description |
|---|---|---|---|---|
| version | String | Yes | URL parameter | API version number, current value is 1. |
| ip | String | Yes | URL parameter | Public IP Address |
| startTime | String | No | Query | Attack start UTC time |
| marker | String | No | Query | The starting position of the batch list query is a system-generated string |
| maxKeys | Int | No | Query | Maximum number of items per page is 1,000, with a default value of 1000. |
Response headers
No special headers are required beyond the standard ones.
Response parameters
| Parameter name | Type | Description |
|---|---|---|
| attackRecordList | List<[DdosAttackRecordModel](EIP/API Reference/Appendix 1.md#DdosAttackRecordModel)> | List of basic protection attack records |
Request example
Java
1GET /v1/ddos/106.13.244.6/record?maxKeys=1 HTTP/1.1
2Host: eip.bj.baidubce.com
3Authorization:bce-auth-v1/a43eea003308400587496785f7f5d9ee/2021-11-06T12:28:04Z/3600/host;x-bce-date/25ec3d4baba54ad7397cb31c96cb5e364088ff79f9b853ffb8dc6c11ebcdcf16
Response example
Java
1HTTP/1.1 200 OK
2Server: nginx/1.19.0
3Date: Sat, 06 Nov 2021 12:28:05 GMT
4Content-Type: application/json; charset=UTF-8
5X-Bce-Request-Id: dfd5d01f-a869-49eb-aba5-d853a335a6d4
6{
7 "attackRecordList": [
8 {
9 "ip": "106.13.244.6",
10 "startTime": "2022-11-06T04:34:49Z",
11 "endTime": "2022-11-16T04:34:49Z",
12 "attackType": [
13 "ATTACK_TYPE_CONNECTION"
14 ],
15 "attackPeakMbps": 801.89
16 "attackPeakPps": xxx,
17 "attackPeakQps": xxx
18 }
19 ],
20 "marker":"123456",
21 "isTruncated": true,
22 "nextMarker": "234567",
23 "maxKeys": 1
24}
