查询IP云商品套餐
本页目录
https://www.cloudam.cn/ip/{ACCOUNT_ID}/listproducts
请求方式:GET
查询IP云商品套餐
URL Parameters
| Parameter | Type | Description |
|---|---|---|
| ACCOUNT_ID | String | 您的Cloudam账户ID, Cloudam会随Token一起提前发送给客户 Example: QQwwEErr!1234 |
Request(请求)
Headers(HTTP头)
注: 请首先联系Cloudam获取API Token,token相当于密码,请妥善保护。
{
"Authorization": "Bearer ${token}",
"Content-Type": "application/json"
}
Response(响应) - 200
Headers(响应头)
{
"Content-Type": "application/json"
}
Body(响应体JSON) -- 正确响应
{
{
"id": "5de747bf4e840d4328fe7db0",
"chargeType": "fixedIp",
"interval": 0,
"unit": "month",
"amount": 100,
"price": 1700.0
}
}
Response Body Attributes(响应Body属性)
| Attribute | Type | Description |
|---|---|---|
| id | String | 套餐id, Example:5de747bf4e840d4328fe7db0 |
| chargeType | String | 购买类型。 fixedIp:长效固定IP,durationIp:短效按时长计费IP,quantityIp:短效按提取次数计费IP |
| interval | Integer | 提取IP的时间间隔时间,单位为分钟 |
| unit | String | 服务有效时间,month为1个月 |
| amount | Integer | 套餐包含的IP个数 Example:500 |
| price | Float | 套餐价格 Example:1500.0 |