You can call this operation to query the instance types supported by an image.


OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes DescribeImageSupportInstanceTypes

The operation that you want to perform. Set the value to DescribeImageSupportInstanceTypes.

RegionId String Yes cn-hangzhou

The region ID of the image. You can call the DescribeRegions operation to query the most recent region list.

ImageId String No m-o6w3gy99qf89rkga****

The ID of the image.

ActionType String No CreateEcs

The scenario in which the instance type is used. Default value: CreateEcs. Valid values:

  • CreateEcs: instance creation
  • Upgrade: instance type upgrade
  • Downgrade: instance type downgrade
  • RenewDowngrade: renewal and configuration downgrade
Filter.N.Key String No imageId

The key of filter N. Only the image ID can be used to filter instance types. Valid values:

  • imagId: image ID
  • filter: image ID
Filter.N.Value String No m-o6w3gy99qf89rkga****

The value of filter N.

Response parameters

Parameter Type Example Description
ImageId String m-o6w3gy99qf89rkga****

The ID of the image.

InstanceTypes Array of InstanceType

Details about the instance types that are supported by the image.

CpuCoreCount Integer 1

The number of vCPUs of the instance type.

InstanceTypeFamily String ecs.t1

The instance family.

InstanceTypeId String ecs.t1.xsmall

The ID of the instance type.

MemorySize Float 1024

The memory size of the instance type. Unit: GiB.

RegionId String cn-hangzhou

The region ID of the image.

RequestId String 473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E

The ID of the request.


Sample requests
&<Common request parameters>

Sample success responses

XML format


JSON format

    "RequestId": "CF661E2D-4AFE-4BCD-959A-A65E14416B44",
    "RegionId": "cn-hangzhou",
    "ImageId": "ubuntu_16_0402_64_20G_alibase_20180409.vhd",
    "InstanceTypes": {
        "InstanceType": [{
            "InstanceTypeId": "ecs.t1.xsmall",
            "CpuCoreCount": 1,
            "MemorySize": 0.5,
            "InstanceTypeFamily": "ecs.t1"
            "InstanceTypeId": "ecs.t1.small",
            "CpuCoreCount": 1,
            "MemorySize": 1,
            "InstanceTypeFamily": "ecs.t1"

Error codes

HTTP status code Error code Error message Description
400 InvalidParamter Invalid Parameter The error message returned because a specified parameter is invalid.
404 InvalidUsage The specifed Usage is not valid The error message returned because the specified referenced resource type (image, disk, image_disk, or none) is invalid.
400 InvalidInstanceType.ValueNotSupported The specified InstanceType does not exist or beyond the permitted range. The error message returned because the specified instance type does not exist or you are not authorized to manage instances of this instance type.

For a list of error codes, visit the API Error Center.