EIPGROUP Inquiry
Updated at:2025-10-16
- Inquiry for EIPGROUP with different bill types
Request structure
Plain Text
1 POST /v{version}/eipgroup/price HTTP/1.1
2 Host: eip.bj.baidubce.com
3 Authorization: authorization string
4 {
5 "bandwidthInMbps": 10,
6 "count": 1,
7 "ipNum": 2,
8 "billing":{
9 "paymentTiming": paymentTiming,
10 "billingMethod": billingMethod,
11 "reservation":{
12 "reservationLength": reservationLength,
13 "reservationTimeUnit": reservationTimeUnit
14 }
15 },
16 }
Request headers
There are no special headers required beyond the common headers.
Request parameters
| Parameter name | Types | Whether required | Parameter location | Description |
|---|---|---|---|---|
| version | String | Yes | URL parameter | API version number |
| bandwidthInMbps | int | Yes | RequestBody | Public network bandwidth is measured in Mbps and must be an integer value ranging from 1 to 200. |
| count | int | No | RequestBody | The default EIPGROUP count is set to 1. |
| ipNum | int | Yes | RequestBody | Number of IP addresses included in the EIPGROUP. |
| billing | Billing | Yes | Request Body parameters | Billing information supports both prepay and postpay modes (options are bandwidth or 95th percentile). |
Response headers
No special headers are required beyond the standard ones.
Response parameters
| Parameter name | Types | Description |
|---|---|---|
| prices | Map | Price details (including purchasePrice (prepay price), configPrice (configuration price) |
Request example (prepaid)
Plain Text
1 POST /v1/eipgroup/price HTTP/1.1
2 Host: eip.bj.baidubce.com
3 Authorization: bce-auth-v1/f81d3b34e48048fbb2634dc7882d7e21/2015-08-11T04:17:29Z/3600/host/74c506f68c65e26c633bfa104c863fffac5190fdec1ec24b7c03eb5d67d2e1de
4 {
5 "bandwidthInMbps": 20,
6 "count": 1,
7 "ipNum":2,
8 "billing": {
9 "paymentTiming": "Prepaid",
10 "billingMethod": "ByBandwidth",
11 "reservation":{
12 "reservationLength":1,
13 "reservationTimeUnit":"Month"
14 }
15 }
16 }
Response example
Plain Text
1 HTTP/1.1 200 OK
2 x-bce-request-id: 1214cca7-4ad5-451d-9215-71cb844c0a50
3 Date: Thu, 16 Mar 2017 06:29:48 GMT
4 Content-Type: application/json;charset=UTF-8
5 Server: BWS
6 {
7 "prices": {
8 "purchasePrice": "1630.00000"
9 }
10 }
Request example (postpaid by bandwidth)
Plain Text
1 POST /v1/eipgroup/price HTTP/1.1
2 Host: eip.bj.baidubce.com
3 Authorization: bce-auth-v1/f81d3b34e48048fbb2634dc7882d7e21/2015-08-11T04:17:29Z/3600/host/74c506f68c65e26c633bfa104c863fffac5190fdec1ec24b7c03eb5d67d2e1de
4 {
5 "bandwidthInMbps": 20,
6 "count": 1,
7 "ipNum":2,
8 "billing": {
9 "paymentTiming": "Postpaid",
10 "billingMethod": "ByBandwidth"
11 }
12 }
Response example
Plain Text
1 HTTP/1.1 200 OK
2 x-bce-request-id: 1214cca7-4ad5-451d-9215-71cb844c0a50
3 Date: Thu, 16 Mar 2017 06:29:48 GMT
4 Content-Type: application/json;charset=UTF-8
5 Server: BWS
6 {
7 "prices": {
8 "configPrice": "0.05704/minute"
9 }
10 }
Request example (postpaid by monthly 95th percentile peak bandwidth)
Plain Text
1 POST /v1/eipgroup/price HTTP/1.1
2 Host: eip.bj.baidubce.com
3 Authorization: bce-auth-v1/f81d3b34e48048fbb2634dc7882d7e21/2015-08-11T04:17:29Z/3600/host/74c506f68c65e26c633bfa104c863fffac5190fdec1ec24b7c03eb5d67d2e1de
4 {
5 "bandwidthInMbps": 20,
6 "count": 1,
7 "ipNum":2,
8 "billing": {
9 "paymentTiming": "Postpaid",
10 "billingMethod": "By95"
11 }
12 }
Response example
Plain Text
1 HTTP/1.1 200 OK
2 x-bce-request-id: 1214cca7-4ad5-451d-9215-71cb844c0a50
3 Date: Thu, 16 Mar 2017 06:29:48 GMT
4 Content-Type: application/json;charset=UTF-8
5 Server: BWS
6 {
7 "prices": {
8 "configPrice": "0.00104/minute"
9 }
10 }
