This topic describes how to call the DescribeImageSupportInstanceTypes operation by using Alibaba Cloud CLI to query the instance types supported by the specified image.

Background information

We recommend that you read the description of the operation before you call the operation. 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 the m-bp16272rnrwan2ic**** image.

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


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