硅云幫助文檔中心
搜索文檔
熱門搜索詞:
產(chǎn)品簡介
產(chǎn)品定價
入門指南
經(jīng)典案例
快照
常見問題
知識拓展
名詞解釋
API參考
產(chǎn)品規(guī)格相關(guān)接口
服務(wù)器實例相關(guān)接口
安全組相關(guān)接口
磁盤相關(guān)接口
獲取服務(wù)器規(guī)格
此接口功能為獲取服務(wù)器規(guī)格,此接口不需要驗簽,服務(wù)器規(guī)格很少修改,建議緩存下來
/ncs-server/api/v1/product/getHostSpec
GET
無
GET /ncs-server/api/v1/product/getHostSpec HTTP/1.1
實際以真實返回結(jié)果為準
{ "status": 2000, "message": "success", "data": [ { "productId": "cvm.s1.c16m16.5xlarge", "hostType": "s1", "hostTypeName": "標準型", "areaMarks": "test,", "cpuNum": 1, "memSize": 1024, "unitPrice": 100, "regPriceInfo": "{\"1\":\"1\",\"2\":\"2\",\"3\":\"3\",\"6\":\"6\",\"12\":\"12\",\"24\":\"24\",\"36\":\"36\",\"48\":\"48\",\"60\":\"60\"}", "configuration": "", "pos": 1 }, { "productId": "hk-ph-1", "hostType": "hk-ph", "hostTypeName": "香港普惠型", "areaMarks": "test,hk-1,", "cpuNum": 1, "memSize": 1024, "unitPrice": 700, "regPriceInfo": "{\"1\":\"1\",\"2\":\"1\",\"3\":\"1\",\"6\":\"1\",\"12\":\"12\",\"24\":\"24\",\"36\":\"36\",\"48\":\"48\",\"60\":\"60\"}", "configuration": "配置說明", "pos": 1 } ] }
服務(wù)器規(guī)格數(shù)據(jù)結(jié)構(gòu):
字段 | 類型 | 描述 |
productId | string | 服務(wù)器規(guī)格id,創(chuàng)建和擴容服務(wù)器時需要傳遞 |
hostType | string | 服務(wù)器類型標識 |
areaMarks | string | 可以在哪些地區(qū)使用,每個地區(qū)以英文逗號分隔 |
cpuNum | int | cpu核心數(shù) |
memSize | int | 內(nèi)存大小,單位為M |
unitPrice | int | 單價,單位為分 |
regPriceInfo | string | json字符串,新購價格信息,key為月份,value為費率 價格=單價*費率 |
configuration | string | 配置說明 |
pos | int | 排列位置標識 |
您對該文檔有什么建議?
本文導航