共享带宽询价
所有文档

          弹性公网IP EIP

          共享带宽询价

          • 针对不同计费类型的共享带宽询价

          请求结构

              POST /v{version}/eipgroup/price HTTP/1.1
              Host: eip.bj.baidubce.com
              Authorization: authorization string
               {
              	"bandwidthInMbps": 10,
              	"count": 1,
          		"ipNum": 2,
              	"billing":{
                  	"paymentTiming": paymentTiming,
                  	"billingMethod": billingMethod,
                  	"reservation":{
                      	"reservationLength": reservationLength,
                      	"reservationTimeUnit": reservationTimeUnit
                  	}
              	},
          	}

          请求头域

          除公共头域外,无其它特殊头域。

          请求参数

          参数名称 类型 是否必需 参数位置 描述
          version String URL参数 API版本号
          bandwidthInMbps int RequestBody参数 公网带宽,单位为Mbps。限制为为1~200之间的整数。
          count int RequestBody参数 共享带宽的数量,默认为1。
          ipNum int RequestBody参数 共享带宽中的IP数量。
          billing Billing Request Body参数 计费信息,支持预付费和后付费(带宽、95)方式。

          返回头域

          除公共头域,无其它特殊头域。

          返回参数

          参数名称 类型 描述
          prices Map 价格明细(包含purchasePrice(预付费价格)、configPrice(配置价格))

          请求示例(预付费)

              POST /v1/eipgroup/price  HTTP/1.1
              Host: eip.bj.baidubce.com
              Authorization: bce-auth-v1/f81d3b34e48048fbb2634dc7882d7e21/2015-08-11T04:17:29Z/3600/host/74c506f68c65e26c633bfa104c863fffac5190fdec1ec24b7c03eb5d67d2e1de
              {
              	"bandwidthInMbps": 20,
              	"count": 1,
              	"ipNum":2,
              	"billing": {
                  	"paymentTiming": "Prepaid",
                  	"billingMethod": "ByBandwidth",
          			"reservation":{
                      	"reservationLength":1,
                      	"reservationTimeUnit":"Month"
                  	}
              	}
          	}

          返回示例

              HTTP/1.1 200 OK
              x-bce-request-id: 1214cca7-4ad5-451d-9215-71cb844c0a50
              Date: Thu, 16 Mar 2017 06:29:48 GMT
              Content-Type: application/json;charset=UTF-8
              Server: BWS
          	{
            		"prices": {
              		"purchasePrice": "1630.00000"
            		}
          	}

          请求示例(后付费按照带宽)

              POST /v1/eipgroup/price HTTP/1.1
              Host: eip.bj.baidubce.com
              Authorization: bce-auth-v1/f81d3b34e48048fbb2634dc7882d7e21/2015-08-11T04:17:29Z/3600/host/74c506f68c65e26c633bfa104c863fffac5190fdec1ec24b7c03eb5d67d2e1de
          	{
              	"bandwidthInMbps": 20,
              	"count": 1,
              	"ipNum":2,
              	"billing": {
                  	"paymentTiming": "Postpaid",
                  	"billingMethod": "ByBandwidth"
              	}
          	}

          返回示例

              HTTP/1.1 200 OK
              x-bce-request-id: 1214cca7-4ad5-451d-9215-71cb844c0a50
              Date: Thu, 16 Mar 2017 06:29:48 GMT
              Content-Type: application/json;charset=UTF-8
              Server: BWS
          	{
            		"prices": {
              		"configPrice": "0.05704/minute"
            		}
          	}

          请求示例(后付费按照月95峰值带宽)

              POST /v1/eipgroup/price HTTP/1.1
              Host: eip.bj.baidubce.com
              Authorization: bce-auth-v1/f81d3b34e48048fbb2634dc7882d7e21/2015-08-11T04:17:29Z/3600/host/74c506f68c65e26c633bfa104c863fffac5190fdec1ec24b7c03eb5d67d2e1de
          	{
              	"bandwidthInMbps": 20,
              	"count": 1,
              	"ipNum":2,
              	"billing": {
                  	"paymentTiming": "Postpaid",
                  	"billingMethod": "By95"
              	}
          	}

          返回示例

              HTTP/1.1 200 OK
              x-bce-request-id: 1214cca7-4ad5-451d-9215-71cb844c0a50
              Date: Thu, 16 Mar 2017 06:29:48 GMT
              Content-Type: application/json;charset=UTF-8
              Server: BWS
          	{
            		"prices": {
              		"configPrice": "0.00104/minute"
            		}
          	}
          上一篇
          带宽包询价
          下一篇
          EIP询价