DescribeInstanceTypes
调用DescribeInstanceTypes查询云服务器ECS提供的实例规格资源。
接口说明
DescribeInstanceTypes仅查询实例规格的配置和性能信息。如果您需要查询具体地域下可购买的实例规格,请使用DescribeAvailableResource。
如果您需要使用更多实例规格资源,请提交工单联系阿里云。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
请求参数
名称 | 类型 | 是否必选 | 示例值 | 描述 |
---|---|---|---|---|
Action | String | 否 | DescribeInstanceTypes |
接口名称。对于您自行拼凑HTTP/HTTPS URL发起的API请求, |
InstanceTypeFamily | String | 否 | ecs.g6 |
实例规格所属的规格族。取值请参见DescribeInstanceTypeFamilies。 更多详情,请参见实例规格族。 |
返回数据
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
RequestId | String | 473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E |
请求ID。 |
InstanceTypes | Array |
实例规格族集合。 |
|
InstanceTypeId | String | ecs.g5.large |
实例规格ID。 |
CpuCoreCount | Integer | 8 |
vCPU内核数目。 |
MemorySize | Float | 8.0 |
内存大小,单位GiB。 |
InstanceTypeFamily | String | ecs.g5 |
实例规格族。 |
LocalStorageCapacity | Long | 5000 |
实例挂载的本地盘的单盘容量,单位:GiB。 |
LocalStorageAmount | Integer | 1 |
实例挂载的本地盘的数量。 |
LocalStorageCategory | String | local_ssd_pro |
本地盘类型,详情请参见本地盘。可能值:
|
GPUAmount | Integer | 2 |
GPU数量。 |
GPUSpec | String | NVIDIA V100 |
GPU类型。 |
InitialCredit | Integer | 120 |
突发性能实例t5、t6的初始vCPU积分值。 |
BaselineCredit | Integer | 4 |
突发性能实例t5、t6的基准vCPU计算性能(所有vCPU之和)。 |
EniQuantity | Integer | 2 |
支持挂载的弹性网卡上限。 |
EniPrivateIpAddressQuantity | Integer | 6 |
单块弹性网卡的私有IP地址上限。 |
InstanceBandwidthRx | Integer | 1024000 |
内网入方向带宽限制,单位:kbit/s。 |
InstanceBandwidthTx | Integer | 1024000 |
内网出方向带宽限制,单位:kbit/s。 |
InstancePpsRx | Long | 300000 |
内网入方向网络收发包能力,单位:Pps。 |
InstancePpsTx | Long | 300000 |
内网出方向网络收发包能力,单位:Pps。 |
InstanceFamilyLevel | String | EnterpriseLevel |
实例规格族级别。可能值:
|
示例
请求示例
https://ecs.aliyuncs.com/?Action=DescribeInstanceTypes
&InstanceTypeFamily=ecs.g6
&<公共请求参数>
正常返回示例
XML
格式
<DescribeInstanceTypesResponse>
<InstanceTypes>
<InstanceType>
<CpuCoreCount>104</CpuCoreCount>
<InstanceTypeFamily>ecs.g6</InstanceTypeFamily>
<InstanceBandwidthRx>25600000</InstanceBandwidthRx>
<InstancePpsRx>6000000</InstancePpsRx>
<InstancePpsTx>6000000</InstancePpsTx>
<EniQuantity>15</EniQuantity>
<InstanceTypeId>ecs.g6.26xlarge</InstanceTypeId>
<GPUSpec></GPUSpec>
<InstanceBandwidthTx>25600000</InstanceBandwidthTx>
<InstanceFamilyLevel>EnterpriseLevel</InstanceFamilyLevel>
<MemorySize>384</MemorySize>
<GPUAmount>0</GPUAmount>
<LocalStorageCategory></LocalStorageCategory>
<EniPrivateIpAddressQuantity>20</EniPrivateIpAddressQuantity>
</InstanceType>
<InstanceType>
<CpuCoreCount>52</CpuCoreCount>
<InstanceTypeFamily>ecs.g6</InstanceTypeFamily>
<InstanceBandwidthRx>12800000</InstanceBandwidthRx>
<InstancePpsRx>3000000</InstancePpsRx>
<InstancePpsTx>3000000</InstancePpsTx>
<EniQuantity>7</EniQuantity>
<InstanceTypeId>ecs.g6.13xlarge</InstanceTypeId>
<GPUSpec></GPUSpec>
<InstanceBandwidthTx>12800000</InstanceBandwidthTx>
<InstanceFamilyLevel>EnterpriseLevel</InstanceFamilyLevel>
<MemorySize>192</MemorySize>
<GPUAmount>0</GPUAmount>
<LocalStorageCategory></LocalStorageCategory>
<EniPrivateIpAddressQuantity>20</EniPrivateIpAddressQuantity>
</InstanceType>
<InstanceType>
<CpuCoreCount>64</CpuCoreCount>
<InstanceTypeFamily>ecs.g6</InstanceTypeFamily>
<InstanceBandwidthRx>20480000</InstanceBandwidthRx>
<InstancePpsRx>4000000</InstancePpsRx>
<InstancePpsTx>4000000</InstancePpsTx>
<EniQuantity>8</EniQuantity>
<InstanceTypeId>ecs.g6.16xlarge</InstanceTypeId>
<GPUSpec></GPUSpec>
<InstanceBandwidthTx>20480000</InstanceBandwidthTx>
<InstanceFamilyLevel>EnterpriseLevel</InstanceFamilyLevel>
<MemorySize>256</MemorySize>
<GPUAmount>0</GPUAmount>
<LocalStorageCategory></LocalStorageCategory>
<EniPrivateIpAddressQuantity>20</EniPrivateIpAddressQuantity>
</InstanceType>
<InstanceType>
<CpuCoreCount>8</CpuCoreCount>
<InstanceTypeFamily>ecs.g6</InstanceTypeFamily>
<InstanceBandwidthRx>2560000</InstanceBandwidthRx>
<InstancePpsRx>800000</InstancePpsRx>
<InstancePpsTx>800000</InstancePpsTx>
<EniQuantity>4</EniQuantity>
<InstanceTypeId>ecs.g6.2xlarge</InstanceTypeId>
<GPUSpec></GPUSpec>
<InstanceBandwidthTx>2560000</InstanceBandwidthTx>
<InstanceFamilyLevel>EnterpriseLevel</InstanceFamilyLevel>
<MemorySize>32</MemorySize>
<GPUAmount>0</GPUAmount>
<LocalStorageCategory></LocalStorageCategory>
<EniPrivateIpAddressQuantity>10</EniPrivateIpAddressQuantity>
</InstanceType>
<InstanceType>
<CpuCoreCount>2</CpuCoreCount>
<InstanceTypeFamily>ecs.g6</InstanceTypeFamily>
<InstanceBandwidthRx>1024000</InstanceBandwidthRx>
<InstancePpsRx>300000</InstancePpsRx>
<InstancePpsTx>300000</InstancePpsTx>
<EniQuantity>2</EniQuantity>
<InstanceTypeId>ecs.g6.large</InstanceTypeId>
<GPUSpec></GPUSpec>
<InstanceBandwidthTx>1024000</InstanceBandwidthTx>
<InstanceFamilyLevel>EnterpriseLevel</InstanceFamilyLevel>
<MemorySize>8</MemorySize>
<GPUAmount>0</GPUAmount>
<LocalStorageCategory></LocalStorageCategory>
<EniPrivateIpAddressQuantity>6</EniPrivateIpAddressQuantity>
</InstanceType>
<InstanceType>
<CpuCoreCount>4</CpuCoreCount>
<InstanceTypeFamily>ecs.g6</InstanceTypeFamily>
<InstanceBandwidthRx>1536000</InstanceBandwidthRx>
<InstancePpsRx>500000</InstancePpsRx>
<InstancePpsTx>500000</InstancePpsTx>
<EniQuantity>3</EniQuantity>
<InstanceTypeId>ecs.g6.xlarge</InstanceTypeId>
<GPUSpec></GPUSpec>
<InstanceBandwidthTx>1536000</InstanceBandwidthTx>
<InstanceFamilyLevel>EnterpriseLevel</InstanceFamilyLevel>
<MemorySize>16</MemorySize>
<GPUAmount>0</GPUAmount>
<LocalStorageCategory></LocalStorageCategory>
<EniPrivateIpAddressQuantity>10</EniPrivateIpAddressQuantity>
</InstanceType>
<InstanceType>
<CpuCoreCount>12</CpuCoreCount>
<InstanceTypeFamily>ecs.g6</InstanceTypeFamily>
<InstanceBandwidthRx>4096000</InstanceBandwidthRx>
<InstancePpsRx>900000</InstancePpsRx>
<InstancePpsTx>900000</InstancePpsTx>
<EniQuantity>6</EniQuantity>
<InstanceTypeId>ecs.g6.3xlarge</InstanceTypeId>
<GPUSpec></GPUSpec>
<InstanceBandwidthTx>4096000</InstanceBandwidthTx>
<InstanceFamilyLevel>EnterpriseLevel</InstanceFamilyLevel>
<MemorySize>48</MemorySize>
<GPUAmount>0</GPUAmount>
<LocalStorageCategory></LocalStorageCategory>
<EniPrivateIpAddressQuantity>10</EniPrivateIpAddressQuantity>
</InstanceType>
<InstanceType>
<CpuCoreCount>16</CpuCoreCount>
<InstanceTypeFamily>ecs.g6</InstanceTypeFamily>
<InstanceBandwidthRx>5120000</InstanceBandwidthRx>
<InstancePpsRx>1000000</InstancePpsRx>
<InstancePpsTx>1000000</InstancePpsTx>
<EniQuantity>8</EniQuantity>
<InstanceTypeId>ecs.g6.4xlarge</InstanceTypeId>
<GPUSpec></GPUSpec>
<InstanceBandwidthTx>5120000</InstanceBandwidthTx>
<InstanceFamilyLevel>EnterpriseLevel</InstanceFamilyLevel>
<MemorySize>64</MemorySize>
<GPUAmount>0</GPUAmount>
<LocalStorageCategory></LocalStorageCategory>
<EniPrivateIpAddressQuantity>20</EniPrivateIpAddressQuantity>
</InstanceType>
<InstanceType>
<CpuCoreCount>24</CpuCoreCount>
<InstanceTypeFamily>ecs.g6</InstanceTypeFamily>
<InstanceBandwidthRx>7680000</InstanceBandwidthRx>
<InstancePpsRx>1500000</InstancePpsRx>
<InstancePpsTx>1500000</InstancePpsTx>
<EniQuantity>8</EniQuantity>
<InstanceTypeId>ecs.g6.6xlarge</InstanceTypeId>
<GPUSpec></GPUSpec>
<InstanceBandwidthTx>7680000</InstanceBandwidthTx>
<InstanceFamilyLevel>EnterpriseLevel</InstanceFamilyLevel>
<MemorySize>96</MemorySize>
<GPUAmount>0</GPUAmount>
<LocalStorageCategory></LocalStorageCategory>
<EniPrivateIpAddressQuantity>20</EniPrivateIpAddressQuantity>
</InstanceType>
<InstanceType>
<CpuCoreCount>32</CpuCoreCount>
<InstanceTypeFamily>ecs.g6</InstanceTypeFamily>
<InstanceBandwidthRx>10240000</InstanceBandwidthRx>
<InstancePpsRx>2000000</InstancePpsRx>
<InstancePpsTx>2000000</InstancePpsTx>
<EniQuantity>8</EniQuantity>
<InstanceTypeId>ecs.g6.8xlarge</InstanceTypeId>
<GPUSpec></GPUSpec>
<InstanceBandwidthTx>10240000</InstanceBandwidthTx>
<InstanceFamilyLevel>EnterpriseLevel</InstanceFamilyLevel>
<MemorySize>128</MemorySize>
<GPUAmount>0</GPUAmount>
<LocalStorageCategory></LocalStorageCategory>
<EniPrivateIpAddressQuantity>20</EniPrivateIpAddressQuantity>
</InstanceType>
</InstanceTypes>
<RequestId>E0ADB23F-3510-4EE5-8D49-97D314B0E253</RequestId>
</DescribeInstanceTypesResponse>
JSON
格式
{
"InstanceTypes": {
"InstanceType": [
{
"CpuCoreCount": 104,
"InstanceTypeFamily": "ecs.g6",
"InstanceBandwidthRx": 25600000,
"InstancePpsRx": 6000000,
"InstancePpsTx": 6000000,
"EniQuantity": 15,
"InstanceTypeId": "ecs.g6.26xlarge",
"GPUSpec": "",
"InstanceBandwidthTx": 25600000,
"InstanceFamilyLevel": "EnterpriseLevel",
"MemorySize": 384,
"GPUAmount": 0,
"LocalStorageCategory": "",
"EniPrivateIpAddressQuantity": 20
},
{
"CpuCoreCount": 52,
"InstanceTypeFamily": "ecs.g6",
"InstanceBandwidthRx": 12800000,
"InstancePpsRx": 3000000,
"InstancePpsTx": 3000000,
"EniQuantity": 7,
"InstanceTypeId": "ecs.g6.13xlarge",
"GPUSpec": "",
"InstanceBandwidthTx": 12800000,
"InstanceFamilyLevel": "EnterpriseLevel",
"MemorySize": 192,
"GPUAmount": 0,
"LocalStorageCategory": "",
"EniPrivateIpAddressQuantity": 20
},
{
"CpuCoreCount": 64,
"InstanceTypeFamily": "ecs.g6",
"InstanceBandwidthRx": 20480000,
"InstancePpsRx": 4000000,
"InstancePpsTx": 4000000,
"EniQuantity": 8,
"InstanceTypeId": "ecs.g6.16xlarge",
"GPUSpec": "",
"InstanceBandwidthTx": 20480000,
"InstanceFamilyLevel": "EnterpriseLevel",
"MemorySize": 256,
"GPUAmount": 0,
"LocalStorageCategory": "",
"EniPrivateIpAddressQuantity": 20
},
{
"CpuCoreCount": 8,
"InstanceTypeFamily": "ecs.g6",
"InstanceBandwidthRx": 2560000,
"InstancePpsRx": 800000,
"InstancePpsTx": 800000,
"EniQuantity": 4,
"InstanceTypeId": "ecs.g6.2xlarge",
"GPUSpec": "",
"InstanceBandwidthTx": 2560000,
"InstanceFamilyLevel": "EnterpriseLevel",
"MemorySize": 32,
"GPUAmount": 0,
"LocalStorageCategory": "",
"EniPrivateIpAddressQuantity": 10
},
{
"CpuCoreCount": 2,
"InstanceTypeFamily": "ecs.g6",
"InstanceBandwidthRx": 1024000,
"InstancePpsRx": 300000,
"InstancePpsTx": 300000,
"EniQuantity": 2,
"InstanceTypeId": "ecs.g6.large",
"GPUSpec": "",
"InstanceBandwidthTx": 1024000,
"InstanceFamilyLevel": "EnterpriseLevel",
"MemorySize": 8,
"GPUAmount": 0,
"LocalStorageCategory": "",
"EniPrivateIpAddressQuantity": 6
},
{
"CpuCoreCount": 4,
"InstanceTypeFamily": "ecs.g6",
"InstanceBandwidthRx": 1536000,
"InstancePpsRx": 500000,
"InstancePpsTx": 500000,
"EniQuantity": 3,
"InstanceTypeId": "ecs.g6.xlarge",
"GPUSpec": "",
"InstanceBandwidthTx": 1536000,
"InstanceFamilyLevel": "EnterpriseLevel",
"MemorySize": 16,
"GPUAmount": 0,
"LocalStorageCategory": "",
"EniPrivateIpAddressQuantity": 10
},
{
"CpuCoreCount": 12,
"InstanceTypeFamily": "ecs.g6",
"InstanceBandwidthRx": 4096000,
"InstancePpsRx": 900000,
"InstancePpsTx": 900000,
"EniQuantity": 6,
"InstanceTypeId": "ecs.g6.3xlarge",
"GPUSpec": "",
"InstanceBandwidthTx": 4096000,
"InstanceFamilyLevel": "EnterpriseLevel",
"MemorySize": 48,
"GPUAmount": 0,
"LocalStorageCategory": "",
"EniPrivateIpAddressQuantity": 10
},
{
"CpuCoreCount": 16,
"InstanceTypeFamily": "ecs.g6",
"InstanceBandwidthRx": 5120000,
"InstancePpsRx": 1000000,
"InstancePpsTx": 1000000,
"EniQuantity": 8,
"InstanceTypeId": "ecs.g6.4xlarge",
"GPUSpec": "",
"InstanceBandwidthTx": 5120000,
"InstanceFamilyLevel": "EnterpriseLevel",
"MemorySize": 64,
"GPUAmount": 0,
"LocalStorageCategory": "",
"EniPrivateIpAddressQuantity": 20
},
{
"CpuCoreCount": 24,
"InstanceTypeFamily": "ecs.g6",
"InstanceBandwidthRx": 7680000,
"InstancePpsRx": 1500000,
"InstancePpsTx": 1500000,
"EniQuantity": 8,
"InstanceTypeId": "ecs.g6.6xlarge",
"GPUSpec": "",
"InstanceBandwidthTx": 7680000,
"InstanceFamilyLevel": "EnterpriseLevel",
"MemorySize": 96,
"GPUAmount": 0,
"LocalStorageCategory": "",
"EniPrivateIpAddressQuantity": 20
},
{
"CpuCoreCount": 32,
"InstanceTypeFamily": "ecs.g6",
"InstanceBandwidthRx": 10240000,
"InstancePpsRx": 2000000,
"InstancePpsTx": 2000000,
"EniQuantity": 8,
"InstanceTypeId": "ecs.g6.8xlarge",
"GPUSpec": "",
"InstanceBandwidthTx": 10240000,
"InstanceFamilyLevel": "EnterpriseLevel",
"MemorySize": 128,
"GPUAmount": 0,
"LocalStorageCategory": "",
"EniPrivateIpAddressQuantity": 20
}
]
},
"RequestId": "E0ADB23F-3510-4EE5-8D49-97D314B0E253"
}
错误码
访问错误中心查看更多错误码。
版权声明
本文仅代表作者观点,不代表本站立场。
本文系作者授权发表,未经许可,不得转载。
评论