Modify Protection IP Protection Level
Updated at:2025-10-16
Description
- Change the protection level for specified IPs in the TBSP.
Request structure
Plain Text
1PUT /v{version}/tbsp/{id}/ipProtectLevel?clientToken={clientToken} HTTP/1.1
2Host: eip.bj.baidubce.com
3Authorization: authorization string
4{
5 "ip": ip,
6 "protectLevel": protectLevel
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 |
| protectLevel | Int | Yes | RequestBody | Protection level: 1 (lenient), 2 (moderate), or 3 (strict) |
Response headers
No special headers are required beyond the standard ones.
Response parameters
No special response parameters are available.
Request example
Java
1PUT /v1/tbsp/ipDdos-f294b1c9/ipProtectLevel?clientToken=74474353-7e80-403d-adf1-a751863bbf7a 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 "protectLevel": 3
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: 70b6324a-7b10-4736-8872-4c29be8ef474
