可购地区列表查询

查询可购买地区IP数量

接口信息

GET /client/ip/pool/regionalAvailableIps

请求头

参数名类型描述
x-merchant-tokenString商户令牌
x-merchant-codeString商户代码

请求参数

参数名必选类型描述
typeIntegerIP类别 0广播 1原生
ipCategoryStringIP属性 IDC机房 HOST住宅
continentsArray[String]州列表
countryCodesArray[String]国家代码列表
locationsArray[String]省/区列表
bandwidthInteger带宽规格(Mbps),如 5、10;不传时每个可购地区可能返回多条记录,分别对应不同带宽规格

代码示例

/client/ip/pool/regionalAvailableIps

响应示例

{
  "total": 3,
  "rows": [
    {
      "id": 19,
      "type": 1,
      "ipCategory": "HOST",
      "continent": "asia",
      "countryCode": "hk",
      "location": "hongkong",
      "bandwidth": 10,
      "price": 30.0000,
      "price7": null,
      "ipTotals": 100
    },
    {
      "id": 19,
      "type": 1,
      "ipCategory": "HOST",
      "continent": "asia",
      "countryCode": "hk",
      "location": "hongkong",
      "bandwidth": 5,
      "price": 20.0000,
      "price7": null,
      "ipTotals": 413
    },
    {
      "id": 24,
      "type": 1,
      "ipCategory": "HOST",
      "continent": "north_america",
      "countryCode": "us",
      "location": "newyork",
      "bandwidth": 5,
      "price": 18.0000,
      "price7": null,
      "ipTotals": 200
    }
  ],
  "code": 200,
  "msg": "查询成功"
}

同一地区 id 可能出现多条记录,以 bandwidth 区分不同带宽规格;priceipTotals 均为该带宽规格下的单价与可购数量。

响应参数说明

参数名类型描述
idInteger地区标识,与下单时的国家/地区组合对应
typeIntegerIP类别:0-广播, 1-原生
ipCategoryStringIP属性:HOST-住宅, IDC-机房
continentString大洲
countryCodeString国家代码
locationString省/区位置
bandwidthInteger带宽规格(Mbps),如 5、10
pricedouble该带宽规格下的月单价(元)
price7double该带宽规格下的 7 天单价(元);无 7 天售价时为 null
ipTotalsInteger该带宽规格下的可购数量