Query DDoS basic protection list
Updated at:2025-10-16
Description
- Query basic protection information for all public IPs under a user account
- Support queries by public IP address and public IP type
- Results support marker-based pagination, with a default page size of 1000, which can be specified via the maxKeys parameter.
Request structure
Plain Text
1GET /v{version}/ddos?ips={ips}&type={type}&marker={marker}&maxKeys={maxKeys} HTTP/1.1
2Host: eip.bj.baidubce.com
3Authorization: authorization string
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. |
| ips | String | No | Query | Public IP address, separated by "," for multiple addresses, with a maximum count of 1,000 |
| type | String | No | Query | Public IP type, defaulting to IPv4, options: IPv4 and IPv6 |
| 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. |
Return status code
Respond with 200 after successful operation, and respond with error codes after failed operation, as shown in [Error Codes](EIP/API Reference/Error code.md)
Response headers
No special headers beyond common headers.
Response parameters
| Parameter name | Types | Description |
|---|---|---|
| ddosList | List<[DdosModel](EIP/API Reference/Appendix 1.md#DdosModel)> | List containing query results |
| marker | string | Marker indicating the starting position of the query. If the result list is empty, this field does not exist. |
| isTruncated | boolean | true indicates there is more data later, false indicates it is the last page |
| nextMarker | String | The marker value needed to fetch the next page. This field is absent when isTruncated is false. |
| maxKeys | int | Maximum number of items included per page |
Request example
Plain Text
1GET /v1/ddos?ips=106.13.244.6,106.13.244.7 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
Plain Text
1HTTP/1.1 200 OK
2x-bce-request-id: 946002ee-cb4f-4aad-b686-5be55df27f09
3Date: Sat, 06 Nov 2021 12:28:05 GMT
4Content-Type: application/json; charset=UTF-8
5Server: BWS
6
7{
8 "ddosList": [
9 {
10 "ip": "106.13.244.6",
11 "status": "available",
12 "bindInstanceType": "BCC",
13 "bindInstanceId": "i-IyWRtII7",
14 "bindInstanceName": "xxx",
15 "ipCleanMbps": 200,
16 "ipCleanPps": 100000,
17 "thresholdType": "bandwidth",
18 "maximumThreshold": 5
19 },
20 {
21 "ip": "106.13.244.7",
22 "status": "available",
23 "bindInstanceType": "BCC",
24 "bindInstanceId": "i-IyWRtII8",
25 "bindInstanceName": "xxx",
26 "ipCleanMbps": 200,
27 "ipCleanPps": 100000,
28 "thresholdType": "bandwidth",
29 "maximumThreshold": 5
30 },
31 ],
32 "marker":"",
33 "isTruncated": false,
34 "nextMarker": "",
35 "maxKeys": 2
36}
