通过阿里云CLI调用DescribeInstanceTypes API查询云服务器ECS提供的实例规格资源。
背景信息
您可以调用DescribeInstanceTypes查询云服务器ECS提供的实例规格资源。调用接口前建议您仔细阅读接口的相关说明,具体请参见DescribeInstanceTypes。
通过阿里云CLI调用API时,不同数据类型的请求参数取值必须遵循格式要求,详情请参见参数格式说明。
CLI请求示例
查询通用型实例规格簇ecs.g6
的规格资源。
aliyun ecs DescribeInstanceTypes --InstanceTypeFamily ecs.g6
执行结果
{
"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"
}