This topic describes how to call the DescribeInstanceTypes operation by using Alibaba Cloud CLI to query the instance types provided by ECS.
Background information
You can call the DescribeInstanceTypes operation to query the instance types provided by ECS. We recommend that you read the description of the operation before you call the operation. For more information, see DescribeInstanceTypes.
When you call an API operation through Alibaba Cloud CLI, make sure that request parameter values of different data types are in required formats. For more information, see Parameter format overview.
Request examples
Query instance types of the ecs.g6
general purpose instance family.
aliyun ecs DescribeInstanceTypes --InstanceTypeFamily ecs.g6
Result
{
"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.0,
"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.0,
"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.0,
"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.0,
"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.0,
"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.0,
"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.0,
"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.0,
"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.0,
"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.0,
"GPUAmount": 0,
"LocalStorageCategory": "",
"EniPrivateIpAddressQuantity": 20
}
]
},
"RequestId": "6B2F3E3C-2653-450B-B824-9D0703F1D753"
}