Bind a bandwidth package to a Cloud Smart Network
Updated at:2025-11-11
Description
Bind a bandwidth package to a Cloud Smart Network.
- Each bandwidth package can only be bound to one Cloud Smart Network.
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 "csnId":"csnId"
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 |
| csnId | String | Yes | RequestBody | Cloud Smart Network ID |
| action | String | Yes | Query | The action performed on the bandwidth package, which takes the value “bind” in this API |
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?bind&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 "csnId":"csn-c5s0isempeiscgyc"
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
