Adjust the bandwidth of the bandwidth package
Updated at:2025-10-16
Description
- Modify the size of the public network bandwidth in the bandwidth package.
- The bandwidthInMbps field specifies the public network bandwidth of the bandwidth package, which must be an integer greater than 0. The total of this value and the bandwidth of Bind Resources cannot exceed 200Mbps.
- If the bandwidth package type is AccelerationPackage, the combined bandwidth of the package and the default cross-border bandwidth of the instance cannot exceed its total bandwidth value.
Request structure
Plain Text
1PUT /v{version}/eipbp/{id}?{action}&clientToken={clientToken} HTTP/1.1
2Host: eip.bj.baidubce.com
3Authorization: authorization string
4{
5 "bandwidthInMbps": bandwidthInMbps
6}
Request headers
There are no special headers required beyond the common headers.
Request parameters
| Parameter name | Type | Required or not | Parameter position | Description |
|---|---|---|---|---|
| version | String | Yes | URL parameter | API version number, current value is 1. |
| clientToken | String | No | Query | Idempotency Token |
| id | String | Yes | URL parameter | Bandwidth package ID |
| action | String | Yes | Query | Operations on bandwidth package instance, with the value resize taken in this API |
| bandwidthInMbps | int | Yes | RequestBody | Adjusted public network bandwidth of the bandwidth package |
Response 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 additional headers beyond standard ones.
Response parameters
No special response parameters are available.
Request example
Plain Text
1PUT /v1/eipbp/bw-2ede9df3?resize&clientToken=be31b98c-5e41-4838-9830-9be700de5a20 HTTP/1.1
2HOST: eip.bj.baidubce.com
3Authorization: bce-auth-v1/5e5a8adf11ae475ba95f1bd38228b44f/2016-04-10T08:26:52Z/1800/host;x-bce-date/ec3c0069f9abb1e247773a62707224124b2b31b4c171133677f9042969791f02
4{
5 "bandwidthInMbps": 10
6}
Response example
Plain Text
1HTTP/1.1 200 OK
2x-bce-request-id: f7302165-756d-4c83-bb7a-1d4548fbba8c
3Cache-Control: no-cache
4Server: BWS
