Skip to main content

DescribeImages

Description

call DescribeImages to query the mirror resources you can use.

Request Method

POST

Request Path

/apsara/route/Ecs/DescribeImages

Request Parameters Common Parameters

NameLocationTypeRequiredSample valueDescription
ImageOwnerAliasBODYstringNoselfimage source. Value range: system: a public image provided by alibaba cloud. self: the custom image you created. others: images shared with you by other alibaba cloud users. Default value: null, null means to return results with values of system, self, and others.
Tag.N.keyBODYstringNonullthe tag key of the mirror. Description This parameter is about to be deprecated. To improve compatibility, we recommend that you use the Tag.N.Key parameter as much as possible.
ActionTypeBODYstringNoCreateEcsMirror the scene that needs to be used. Value range: CreateEcs (default): create instance ChangeOS: replace system disk/replace operating system
PageSizeBODYintegerNo1the number of rows per page set during paging query. Maximum value: 100 default value: 10.
ResourceGroupIdBODYstringNorg-bp67acfmxazb4ph***the ID of the enterprise resource group where the custom image is located.
DryRunBODYbooleanNofalsewhether to precheck only this request. true: sends a check request and does not query the resource status. Check items include whether the AccessKey is valid, the authorization status of RAM users, and whether required parameters are filled in. If the check fails, the corresponding error is returned. If the check passes, the error code DryRunOperation will be returned. false: sends a normal request, returns a 2XX HTTP status code after checking, and directly queries the resource status. default value: false.
ShowExpiredBODYbooleanNofalsewhether the subscription image has expired. Description This parameter is about to be deprecated. To improve compatibility, please use other parameters as much as possible.
Filter.N.KeyBODYstringNoCreationStartTimeSpecify the key of the filter type.
PageNumberBODYintegerNo1the page number of the mirror resource list. Start value: 1 default value: 1.
Tag.N.ValueBODYstringNoTestthe tag value of the mirror. The value range of n is 1~20.
ImageIdBODYstringNom-bp1g7004ksh0oeuc3***mirror ID.
InstanceTypeBODYstringNoecs.g5.largespecifies the image that the instance type can use.
StatusBODYstringNoAvailablequery the image in a certain state. Value range: Creating: the image is being created. Waiting: multitasking in queue. Available (default): the image you can use. UnAvailable: a mirror that you cannot use. CreateFailed: create failed image. supports taking multiple values at the same time, and the values are separated by half-width commas (,).
UsageBODYstringNoinstanceWhether the image is already running in the ECS instance. Value range: instance: The image is running and is used by ECS instances. none: The image is idle and no ECS instance is currently used.
Tag.N.KeyBODYstringNoTestthe tag key of the mirror. The value range of n is 1~20.
ArchitectureBODYstringNoi386mirror architecture. Value range: i386 x86_64
versionBODYstringNo2016-01-01version of api
IsSupportIoOptimizedBODYbooleanNotrueWhether the image can run on an I/O optimized instance.
IsSupportCloudinitBODYbooleanNotruewhether the image supports Cloud Init.
SnapshotIdBODYstringNos-bp17ot2q7x72ggtwr***a custom image created based on a snapshot ID.
ImageNameBODYstringNoTestimage name.
Tag.N.valueBODYstringNonullthe tag value of the mirror. Description This parameter is about to be deprecated. To improve compatibility, it is recommended that you use the Tag.N.Value parameter as much as possible.
regionIdBODYstringYesNo sample value for this parameter.region id
OSTypeBODYstringNolinuxthe operating system type of the image. Value range: windows linux
Filter.N.ValueBODYstringNo2017-12-05T22:40:00Zspecifies the value of the filter type.
RegionIdBODYstringYescn-qingdao-env17-d01the region ID to which the instance belongs. You can call the DescribeRegions to view the latest Alibaba Cloud region list.

Return data

NameTypeSample valueDescription
RequestIDstring1E3D5A1E0-67CA-43DA-24BC-EAF2D5A1E4DCRequest id

Example

Successful Response example

{
"RequestID":"1E3D5A1E0-67CA-43DA-24BC-EAF2D5A1E4DC"
}

Failed Response example

{
"errorSample":
{
"resultCode":-1,
"resultMsg":"system error",
"result":null
}

}