Query Protection IP Allow List
Updated at:2025-10-16
Description
- Retrieve allow list details for protected IPs under the specified TBSP within the user's account.
- Support fuzzy searches for TBSP-protected object IPs.
- Results support marker-based pagination, with a default page size of 1,000, adjustable via the maxKeys parameter.
Request structure
Plain Text
1GET /v{version}/tbsp/{id}/ipWhitelist?ip={ip}&ipCidr={ipCidr}&marker={marker}&maxKeys={maxKeys} HTTP/1.1
2Host: eip.bj.baidubce.com
3Authorization: authorization string
Request headers
No additional headers required beyond standard ones.
Request parameters
| Parameter name | Types | Required or not | Parameter location | Description |
|---|---|---|---|---|
| version | String | Yes | URL parameter | API version number, current value is 1. |
| id | String | Yes | URL parameter | ID of the TBSP |
| ip | String | No | Query | Protected object IP Address of TBSP, with fuzzy search supported |
| ipCidr | String | No | Query | IP allow list segments of TBSP (in IP segment format), with fuzzy search supported |
| 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 | Types | Description |
|---|---|---|
| ipWhitelistList | List<[TbspIpWhitelistModel](EIP/API Reference/Appendix 1.md#TbspIpWhitelistModel)> | 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
Java
1GET /v1/tbsp/ipDdos-f294b1c9/ipWhitelist?&maxKeys=1 HTTP/1.1
2Host: eip.bj.baidubce.com
3Authorization:bce-auth-v1/a43eea003308400587496785f7f5d9ee/2022-04-28T11:06:00Z/3600/host;x-bce-date/25ec3d4baba54ad7397cb31c96cb5e364088ff79f9b853ffb8dc6c11ebcdcf16
Response example
Java
1HTTP/1.1 200 OK
2Server: nginx/1.19.0
3Date: Thu, 28 Apr 2022 11:06:00 GMT
4Content-Type: application/json; charset=UTF-8
5X-Bce-Request-Id: dfd5d01f-a869-49eb-aba5-d853a335a6d4
6{
7 "marker": "acl-iKTgDPul",
8 "isTruncated": true,
9 "nextMarker": "acl-AGKJXtLX",
10 "maxKeys": 1,
11 "ipWhitelistList": [
12 {
13 "whitelistId": "acl-iKTgDPul",
14 "ip": "100.88.15.226",
15 "ipCidr": "100.88.7.21/32"
16 }
17 ]
18}
