DescribeImageSupportInstanceTypes
Description
call the DescribeImageSupportInstanceTypes to query the instance specifications supported by the specified image.
Request Method
POST
Request Path
/apsara/route/Ecs/DescribeImageSupportInstanceTypes
Request Parameters Common Parameters
Name | Location | Type | Required | Sample value | Description |
---|---|---|---|---|---|
Filter.N.Key | BODY | string | No | imageId | specifies the filter condition Key. currently, only image ID can be filtered. the value range is: imageId: filter condition is mirror ID filter: the filter condition is mirror ID |
ActionType | BODY | string | No | CreateEcs | Scenarios to be used for instance specifications. Value range: CreateEcs (default): create instance Upgrade: upgrade instance type Downgrade: degraded instance type |
regionId | BODY | string | Yes | No sample value for this parameter. | region id |
Filter.N.Value | BODY | string | No | m-o6w3gy99qf89rkga**** | specify the filter value. |
ImageId | BODY | string | No | m-o6w3gy99qf89rkga**** | mirror ID. |
RegionId | BODY | string | Yes | cn-qingdao-env17-d01 | the region ID to which the instance belongs. You can call the DescribeRegions to view the latest Alibaba Cloud region list. |
version | BODY | string | No | 2016-01-01 | version of api |
Return data
Name | Type | Sample value | Description |
---|---|---|---|
RequestID | string | 1E3D5A1E0-67CA-43DA-24BC-EAF2D5A1E4DC | Request id |
Example
Successful Response example
{
"RequestID":"1E3D5A1E0-67CA-43DA-24BC-EAF2D5A1E4DC"
}
Failed Response example
{
"errorSample":
{
"resultCode":-1,
"resultMsg":"system error",
"result":null
}
}