硅云帮助文档中心
搜索文档
热门搜索词:
此接口功能为获取产品规格,此接口不需要验签,产品规格很少修改,建议缓存下来
/vhost-server/api/v1/product/search
GET
| 字段 | 类型 | 最大长度 | 参数位置 | 默认选填 | 描述 |
| page | int | 10 | RequestBody | 页数。默认1 第一页 | |
| row | int | 10 | RequestBody | 一页多少行,默认10,最大100 | |
| hostTyp | string | 16 | RequestBody | 产品类型 | |
| ids | set<String> | RequestBody | 产品id集合 |
GET /vhost-server/api/v1/product/search HTTP/1.1
Content-Type: application/json
{
"page":1,
"row":1
}实际以真实返回结果为准
{
"status": 2000,
"message": "success",
"data": {
"count": 33,
"data": [
{
"productId": "hk-ph1x",
"level": 1,
"hostType": "hk-ph",
"hostTypeName": "香港普惠型",
"productName": "香港普惠一型",
"configuration": "",
"unitPrice": 800,
"regPriceInfo": "{\"1\":\"1\",\"2\":\"2\",\"3\":\"3\",\"6\":\"6\",\"12\":\"10\",\"24\":\"20\",\"36\":\"36\",\"48\":\"48\",\"60\":\"50\"}",
"supportUpgrade": true,
"pos": 1
}
]
}
}产品规格数据结构:
| 字段 | 类型 | 描述 |
| productId | string | 规格id,创建和升级实例时需要传递 |
| hostType | string | 产品类型标识 |
| unitPrice | int | 单价,单位为分 |
| regPriceInfo | string | json字符串,新购价格信息,key为月份,value为费率 价格=单价*费率 |
| configuration | string | 配置说明 |
| level | int | 表示产品等级,升级的时候只能低往高升 |
| pos | int | 排列位置标识 |
您对该文档有什么建议?
本文导航