This topic describes how to call the DescribeImageSupportInstanceTypes operation by using Alibaba Cloud command-line interface (CLI) to query the instance types supported by a specified image.

Background information

You can call the DescribeImageSupportInstanceTypes operation to query the instance types supported by a specified image. For more information, see DescribeImageSupportInstanceTypes.

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 the instance types supported by image m-bp16272rnrwan2ic****.

aliyun ecs DescribeImageSupportInstanceTypes --RegionId cn-hangzhou --ImageId m-bp16272rnrwan2ic**** --output cols=InstanceTypeFamily,InstanceTypeId rows=InstanceTypes.InstanceType[]

Result

InstanceTypeFamily | InstanceTypeId
------------------ | --------------
ecs.t1             | ecs.t1.xsmall
ecs.t1             | ecs.t1.small
ecs.s2             | ecs.s2.small
ecs.s3             | ecs.s3.medium
ecs.c1             | ecs.c1.small
ecs.c2             | ecs.c2.medium
ecs.s1             | ecs.s1.small
ecs.s2             | ecs.s2.large
ecs.s3             | ecs.s3.large
ecs.c1             | ecs.c1.large
ecs.c2             | ecs.c2.large