最新活动 七周年庆典

产品

硅云帮助文档中心

搜索文档

热门搜索词:

获取产品规格

更新时间:2020-05-21 16:46  版本:v1.0
分享到:
我要反馈 
收藏 我的收藏

请求说明:


    此接口功能为获取产品规格,此接口不需要验签,产品规格很少修改,建议缓存下来


请求url:


/vhost-server/api/v1/product/search


请求方式:


GET


请求参数:


字段类型最大长度参数位置默认选填描述
pageint10RequestBody
页数。默认1 第一页
rowint10RequestBody
一页多少行,默认10,最大100
hostTyp
string16RequestBody
产品类型
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单价,单位为分
regPriceInfostringjson字符串,新购价格信息,key为月份,value为费率 价格=单价*费率
configurationstring配置说明
levelint表示产品等级,升级的时候只能低往高升
posint排列位置标识






您对该文档有什么建议?

您对该文档的评分:

本文导航

请求说明:

请求参数:

请求示例:

返回示例:

搜索文档