硅云帮助文档中心
搜索文档
热门搜索词:
产品简介
产品定价
入门指南
经典案例
快照
常见问题
知识拓展
名词解释
API参考
此接口功能为获取服务器规格,此接口不需要验签,服务器规格很少修改,建议缓存下来
/ncs-server/api/v1/product/getHostSpec
GET
无
GET /ncs-server/api/v1/product/getHostSpec HTTP/1.1
实际以真实返回结果为准
{
"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
}
]
}服务器规格数据结构:
| 字段 | 类型 | 描述 |
| productId | string | 服务器规格id,创建和扩容服务器时需要传递 |
| hostType | string | 服务器类型标识 |
| areaMarks | string | 可以在哪些地区使用,每个地区以英文逗号分隔 |
| cpuNum | int | cpu核心数 |
| memSize | int | 内存大小,单位为M |
| unitPrice | int | 单价,单位为分 |
| regPriceInfo | string | json字符串,新购价格信息,key为月份,value为费率 价格=单价*费率 |
| configuration | string | 配置说明 |
| pos | int | 排列位置标识 |
您对该文档有什么建议?
本文导航