通过阿里云CLI调用DescribeImageSupportInstanceTypes API查询指定镜像支持的实例规格。
背景信息
调用接口前建议您仔细阅读接口的相关说明,具体请参见DescribeImageSupportInstanceTypes。
通过阿里云CLI调用API时,不同数据类型的请求参数取值必须遵循格式要求,详情请参见参数格式说明。
CLI请求示例
查询镜像m-bp16272rnrwan2ic****
支持的实例规格。
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
在文档使用中是否遇到以下问题
更多建议
匿名提交