Bandwidth package price inquiry
Updated at:2025-11-11
Description
Query the price of a Cloud Smart Network shared bandwidth package.
Request structure
Plain Text
1POST /v{version}/csn/bp/price HTTP/1.1
2Host: csn.baidubce.com
3Authorization: authorization string
4{
5 "name": "name",
6 "bandwidth": "bandwidth",
7 "geographicA": "geographicA",
8 "geographicB": "geographicB",
9 "billing": {
10 "paymentTiming": "paymentTiming",
11 “billingMethod”:"ByBandwidth",
12 "reservation": {
13 "reservationLength": reservationLength,
14 "reservationTimeUnit": "reservationTimeUnit"
15 }
16 }
17}
Request headers
No special headers beyond 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. |
| name | String | Yes | RequestBody | Name of the bandwidth package: Cannot be empty. |
| bandwidth | int | No | RequestBody | Bandwidth value of the package; this is not necessary for postpaid traffic-based billing. |
| geographicA | String | Yes | RequestBody | Region to which the network instance belongs. Value range: [China | Asia-Pacific], representing Chinese mainland and Asia-Pacific region respectively. |
| geographicB | String | Yes | RequestBody | Region to which the other network instance belongs. Value range: [China | Asia-Pacific], representing Chinese mainland and Asia-Pacific region respectively. |
| billing | [Billing](CSN/API Reference/Appendix.md#Billing) | Yes | RequestBody | Billing information |
Response headers
No additional headers beyond standard ones.
Response parameters
| Parameter name | Type | Description |
|---|---|---|
| price | String | Price: 1. For prepaid, it is the price corresponding to the bandwidth and purchase duration. 2. For postpaid traffic-based billing, it is the price for 1G of traffic. 3. For postpaid daily peak bandwidth and 95th percentile billing, it is the price corresponding to the bandwidth in the request |
Request example
Plain Text
1POST /v1/csn/bp/price HTTP/1.1
2HOST: csn.baidubce.com
3Authorization: bce-auth-v1/5e5a8adf11ae475ba95f1bd38228b44f/2022-03-15T08:26:52Z/1800/host;x-bce-date/ec3c0069f9abb1e247773a62707224124b2b31b4c171133677f9042969791f02
4{
5 "bandwidth":2,
6 "geographicA":"China",
7 "geographicB":"China",
8 "billing": {
9 "paymentTiming": "Prepaid",
10 "billingMethod":"ByBandwidth",
11 "reservation": {
12 "reservationLength": 1,
13 "reservationTimeUnit": "month"
14 }
15 }
16}
Response example
Plain Text
1HTTP/1.1 200 OK
2x-bce-request-id: 946002ee-cb4f-4aad-b686-5be55df27f09
3Date: Wed, 15 Mar 15 08:26:52 GMT
4Transfer-Encoding: chunked
5Content-Type: application/json;charset=UTF-8
6Server: BWS
7{
8 "price":"440"
9}
