Query bandwidth package list
Updated at:2025-11-11
Description
Retrieve the bandwidth package list for Cloud Smart Network.
Request structure
Plain Text
1GET /v{version}/csn/bp?marker={marker}&maxKeys={maxKeys} HTTP/1.1
2Host: csn.baidubce.com
3Authorization: authorization string
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. |
| marker | String | No | Query | The starting position of the batch list query is a system-generated string |
| maxKeys | Integer | No | Query | Maximum number of items included per page, maximum: 1,000, default: 1,000 |
Response headers
No additional headers beyond standard ones.
Response parameters
| Parameter name | Types | Description |
|---|---|---|
| csnBps | List<[CsnBp](CSN/API Reference/Appendix.md#CsnBp)> | List containing query results |
| marker | string | Marker indicating the starting position of the query. If the result list is empty, this field does not exist. |
| isTruncated | Boolean | true indicates there is more data later, false indicates it is the last page |
| nextMarker | String | The marker value needed to fetch the next page. This field is absent when isTruncated is false. |
| maxKeys | Integer | Maximum number of items included per page |
Request example
Plain Text
1GET /v1/csn/bp?maxKeys=1 HTTP/1.1
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
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
5{
6 "marker": "csnBp-gdrf6fukb36u",
7 "isTruncated": true,
8 "nextMarker": "csnBp-iuc756n5kkda",
9 "maxKeys": 1,
10 "csnBps": [{
11 "csnBpId": "csnBp - gdrf6fukb36u",
12 "name": "csnBp",
13 "bandwidth": 100,
14 "usedBandwidth": 10,
15 "csnId": "",
16 "interworkType": "center",
17 "interworkRegion": "chinesemainland",
18 "status": "available",
19 "paymentTiming": "Prepaid",
20 "expiredTime": "2022-08-13T08:10:59Z",
21 "createTime": "2021-04-25T17:22:34Z",
22 "tags": [{
23 "tagKey": "tagKey",
24 "tagValue": "tagValue"
25 }]
26 }]
27}
