Add Protection IP Allow List
Updated at:2025-10-16
Description
- Add the protection IP allow list for the TBSP.
Request structure
Plain Text
1POST /v{version}/tbsp/{id}/ipWhitelist?clientToken={clientToken} HTTP/1.1
2Host: eip.bj.baidubce.com
3Authorization: authorization string
4{
5 "ip": ip,
6 "ipCidrList": ipCidrList
7}
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 |
| clientToken | String | Yes | Query | Idempotence token, for details, refer to [Idempotence](EIP/API Reference/General Description.md#Idempotence) |
| ip | String | Yes | RequestBody | IP address of TBSP protection object |
| ipCidrList | Yes | RequestBody | List of allow list IP segments (in full IP address format or IP segment format) |
Response headers
No special headers are required beyond the standard ones.
Response parameters
No special response parameters are available.
Request example
Java
1POST /v1/tbsp/ipDdos-f294b1c9/ipWhitelist?clientToken=be31b98c-5e41-4838-9830-9be700de5a20 HTTP/1.1
2Host: eip.bj.baidubce.com
3Authorization:bce-auth-v1/a43eea003308400587496785f7f5d9ee/2022-04-28T11:06:00Z/3600/host;x-bce-date/25ec3d4baba54ad7397cb31c96cb5e364088ff79f9b853ffb8dc6c11ebcdcf16
4{
5 "ip": "100.88.15.226",
6 "ipCidrList": ["100.88.7.20", "172.16.0.0/16", "100.88.7.21/32"]
7}
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: 36a6324a-7b10-4736-8872-4c29be8ef854
