EIP bandwidth scaling
Updated at:2025-10-16
Specify EIP bandwidth scaling; check completion status via [Query EIP list](EIP/API Reference/EIP Related Interfaces/Query EIP list.md).
Request structure
Plain Text
1PUT /v{version}/eip/{eip}?{action}&clientToken={clientToken} HTTP/1.1
2Host: eip.bj.baidubce.com
3Authorization: authorization string
4
5{
6 "newBandwidthInMbps": newBandwidthInMbps
7}
Request headers
No special headers beyond common headers.
Request parameters
| Parameter name | Types | Whether required | Parameter location | Description |
|---|---|---|---|---|
| version | String | Yes | URL parameter | API version number, current value is 1. |
| eip | String | Yes | URL parameter | Updated EIPs now include both IPv4 and IPv6 addresses. |
| action | String | Yes | Query | Action executed on the EIP instance. In this API, the value of this parameter is resize. |
| clientToken | String | No | Query | For details, refer to [Idempotence Token](EIP/API Reference/General Description.md#Idempotence) |
| newBandwidthInMbps | int | Yes | RequestBody | Public network bandwidth, in Mbps. For prepaid and bandwidth-based EIPs: limited to integers ranging from 1~ to 200; for traffic-based EIPs, limited to integers ranging from 1~ to 1,000. |
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 special headers beyond common headers.
Response parameters
There are no special response parameters
IPv4 EIP request example
Plain Text
1PUT /v1/eip/180.76.122.3?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{
6 "newBandwidthInMbps": 10
7}
IPv6 EIP request example
Plain Text
1PUT /v1/eip/240c:4082:ffff:ff01:0:4:0:12a?resize&clientToken=8da039cd-06e8-472f-980d-54a950d87c1a 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{
6 "newBandwidthInMbps": 150
7}
Response example
Plain Text
1HTTP/1.1 200 OK
2x-bce-request-id: 946002ee-cb4f-4aad-b686-5be55df27f09
3Date: Wed, 10 Apr 2016 08:26:52 GMT
4Transfer-Encoding: chunked
5Content-Type: application/json;charset=UTF-8
6Server: BWS
