Modify Protection IP Cleaning Threshold
Updated at:2025-10-16
Description
- Adjust the cleaning threshold for selected protected IPs in the TBSP.
Request structure
Plain Text
1PUT /v{version}/tbsp/{id}/ipClean?{action}&clientToken={clientToken} HTTP/1.1
2Host: eip.bj.baidubce.com
3Authorization: authorization string
4{
5 "ip": ip,
6 "thresholdType": thresholdType,
7 "cleanMbps": cleanMbps,
8 "cleanPps": cleanPps
9}
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) |
| action | String | Yes | Query | The parameter value is modifyThreshold in this API |
| ip | String | Yes | RequestBody | IP address of TBSP protection object |
| thresholdType | String | Yes | RequestBody | Type of protection object IP cleaning threshold setting, including bandwidth (upper limit), auto (smart), and manual |
| cleanMps | Int | Yes | RequestBody | Traffic bandwidth per second, in Mbps, minimum of 120 Mbps and maximum of 10,000 Mbps (required when the cleaning threshold type is set to manual) |
| cleanPps | Int | Yes | RequestBody | Packets per second (pps), with a minimum of 58,594 pps and a maximum of 4,882,813 pps (required when cleaning threshold setting type is set as manual) |
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/ipClean?modifyThreshold&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 "thresholdType": "manual",
7 "cleanMbps": 120,
8 "cleanPps": 60000
9}
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
