硅云幫助文檔中心
搜索文檔
熱門搜索詞:
產(chǎn)品簡介
產(chǎn)品定價
入門指南
經(jīng)典案例
常見問題
知識拓展
API參考
產(chǎn)品規(guī)格相關(guān)接口
實例相關(guān)接口
獲取產(chǎn)品規(guī)格
此接口功能為獲取產(chǎn)品規(guī)格,此接口不需要驗簽,產(chǎn)品規(guī)格很少修改,建議緩存下來
/vhost-server/api/v1/product/search
GET
字段 | 類型 | 最大長度 | 參數(shù)位置 | 默認選填 | 描述 |
page | int | 10 | RequestBody | 頁數(shù)。默認1 第一頁 | |
row | int | 10 | RequestBody | 一頁多少行,默認10,最大100 | |
hostTyp | string | 16 | RequestBody | 產(chǎn)品類型 | |
ids | set<String> | RequestBody | 產(chǎn)品id集合 |
GET /vhost-server/api/v1/product/search HTTP/1.1 Content-Type: application/json { "page":1, "row":1 }
實際以真實返回結(jié)果為準
{ "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 } ] } }
產(chǎn)品規(guī)格數(shù)據(jù)結(jié)構(gòu):
字段 | 類型 | 描述 |
productId | string | 規(guī)格id,創(chuàng)建和升級實例時需要傳遞 |
hostType | string | 產(chǎn)品類型標識 |
unitPrice | int | 單價,單位為分 |
regPriceInfo | string | json字符串,新購價格信息,key為月份,value為費率 價格=單價*費率 |
configuration | string | 配置說明 |
level | int | 表示產(chǎn)品等級,升級的時候只能低往高升 |
pos | int | 排列位置標識 |
您對該文檔有什么建議?
本文導航