Bandwidth resizing for peering connections
Updated at:2025-10-16
Description
Increase the bandwidth for specific peering connections.
- For cross-account scenarios, only the initiator can perform bandwidth resizing;
- Prepay peering connections can only be subject to bandwidth scaling up, rather than scaling down;
- Postpay peering connections can be subject to both bandwidth scaling up and scaling down;
Request structure
Plain Text
1PUT /v{version}/peerconn/{peerConnId}?{action}&clientToken={clientToken} HTTP/1.1
2Host: bcc.bj.baidubce.com
3Authorization: authorization string
4{
5 "newBandwidthInMbps":newBandwidthInMbps
6}
Request parameters
| Parameter name | Types | Whether required | Parameter location | Description |
|---|---|---|---|---|
| version | String | Yes | URL parameter | API version number, current value is 1. |
| peerConnId | String | Yes | URL parameter | ID of peering connection |
| action | String | Yes | Query | Parameter value for this API: resize |
| newBandwidthInMbps | Integer | Yes | RequestBody | Resized bandwidth |
| clientToken | String | No | Query | Idempotence token, which is an ASCII string with a length not exceeding 64 bits, see details in [ClientToken Idempotence Support](VPC/API Reference/General Description.md#Idempotence) |
Response headers
No additional headers beyond standard ones.
Response parameters
No special response parameters are available.
Request example
Plain Text
1PUT /v1/peerconn/peerconn-9td54fmx143e?resize&clientToken=dc31ef8c-5e41-4e38-9ds0-9de75d0ds5b20 HTTP/1.1
2Host: bcc.bj.baidubce.com
3Authorization: bce-auth-v1/7784e2058c1111e8b62ccf3a4a052967/2018-07-20T11:51:01Z/3600/host;x-bce-account;x-bce-client-ip;x-bce-date;x-bce-request-id;x-bce-security-token/13b9b4830ef19459427e78e61ab811a765ab68416b3ba097e18164b534906ceb
4{
5 "newBandwidthInMbps":20
6}
Response example
Plain Text
1HTTP/1.1 200 OK
2x-bce-request-id: 3ef091f6-37a4-450c-b8a9-ce64a2e80b27
3Date: Fri, 20 Jul 2018 02:47:39 GMT
4Transfer-Encoding: chunked
5Content-Type: application/json;charset=UTF-8
6Server: BWS
