Bandwidth upgrade-downgrade for the bandwidth package
Updated at:2025-11-11
Description
Upgrade or downgrade the bandwidth of the bandwidth package.
- Prepaid bandwidth packages only support upgrades.
- Postpaid bandwidth packages support both upgrades and downgrades.
- The bandwidth range spans from 2 to 10,000.
Request structure
Plain Text
1PUT /v{version}/csn/bp/{csnBpId}?{action}&clientToken={clientToken} HTTP/1.1
2Host: csn.baidubce.com
3Authorization: authorization string
4{
5 "bandwidth":newBandwidth
6}
Request headers
There are no special headers required beyond the common headers.
Request parameters
| Parameter name | Types | Required or not | Parameter location | Description |
|---|---|---|---|---|
| version | String | Yes | URL parameter | API version number, current value is 1. |
| clientToken | String | No | Query | Idempotence token, which is an ASCII string with a length not exceeding 64 bits, see details in [ClientToken Idempotence Support](CSN/API Reference/General Description.md#Idempotence) |
| csnBpId | String | Yes | URL parameter | ID of the bandwidth package |
| action | String | Yes | Query | The action performed on the bandwidth package, which takes the value “resize” in this API |
| bandwidth | Integer | Yes | RequestBody | The bandwidth value for upgrade/downgrade, with a maximum value of 10,000. |
Response headers
No additional headers beyond standard ones.
Response parameters
No special response parameters are available.
Request example
Plain Text
1PUT /v1/csn/bp/csnBp-gdrf6fukb36u?resize&clientToken=1-4838-9830-9be700de5a20
2Host: csn.baidubce.com
3Authorization: bce-auth-v1/bf427691810a11e8a106475a8496ca04/2018-07-06T11:02:49Z/3600/host;x-bce-account;x-bce-client-ip;x-bce-date;x-bce-request-id;x-bce-security-token/e84ee938f6466428ff5c16b3562a1cbf3db5928e7f863cedec8820b5d98aa474
4{
5 "bandwidth":500
6}
Response example
Plain Text
1HTTP/1.1 200 OK
2Date: Fri, 06 Jul 2018 11:12:34 GMT
3Content-Type: application/json;charset=UTF-8
4Server: BWS
