1. 查询云服务器类型
本接口用于查询云服务器类型信息。
- 本接口返回发布给访问用户的所有云服务器类型信息。
- 本接口不是分页接口,可以一次性获取所有发布给访问用户的云服务器类型信息。
本页所有接口都用到可用区信息,可用区具体说明详见 可用区, 本页不再重复说明
1.1. 接口说明
本接口所属服务类型为 product
本接口操作类型为 DescribeInstanceTypes
1.1.1. 请求路径
POST {baseUrl}/v3/product/DescribeInstanceTypes1.1.2. 返回内容
{
"code": 200,
"data": [{
"vhostCpus": 4,
"vhostGpumem": 0,
"vhostGpus": 0.0,
"vhostMemory": 8589934592,
"vhostModel": "ecs.c1ie.xlarge",
"vhostType": "c1ie",
"zone": {
"regionCode": "cn-beijing",
"regionName": "北京",
"zoneCode": "cn-beijing-a",
"zoneName": "北京A区"
},
"rootDiskTypes": ["ESSD_PL0","ESSD_Flex"]
}, {
"vhostCpus": 32,
"vhostGpumem": 0,
"vhostGpus": 0.0,
"vhostMemory": 68719476736,
"vhostModel": "ecs.c1ie.8xlarge",
"vhostType": "c1ie",
"zone": {
"regionCode": "cn-beijing",
"regionName": "北京",
"zoneCode": "cn-beijing-a",
"zoneName": "北京A区"
},
"rootDiskTypes": ["ESSD_PL0","ESSD_Flex"]
}],
"message": "查询云服务器资源规格成功"
}返回内容说明
| 属性名 | 属性类型 | 说明 |
|---|---|---|
| code | Integer | 返回码。正常返回 200,异常返回500或其他业务错误码 |
| message | String | 返回信息 |
| data | Array | 发布给该用户云服务器类型信息列表 |
云服务器类型信息列表
| 属性名 | 属性类型 | 说明 |
|---|---|---|
| vhostModel | String | 云服务器类型唯一编码, 该编码在创建云服务器时会用到 |
| vhostType | String | 云服务器类型 |
| vhostCpus | Integer | 云服务器类型支持的 CPU 个数 |
| vhostMemory | Long | 云服务器类型支持的内容大小。单位字节 |
| vhostGpus | Double | 云服务器类型支持的 GPU 卡数,有的规格支持 T4 1/4 卡,所以该值为浮点类型 |
| vhostGpumem | Long | 显存大小。单位字节 |
| zone | Zone | 该云服务器类型所属可用区信息 |
| rootDiskTypes | Array | 该云服务器规格支持的系统盘类型 |