Last Updated: Jan 26, 2018


Queries your available image. When you call this interface, consider the following:

  • The displayed image resource list contains your custom images, public images provided by Alibaba Cloud, available images from the marketplace, and shared images from the other Alibaba Cloud users.

  • Before you create ECS instances by using an image from the marketplace, you must subscribe the image.

  • You can query images by pages. The result consists of the total number of available image resources and all the image resources on the current page. By default, 10 images are displayed per page.

Request parameters

Name Type Required Description
Action String Yes The name of this interface. Value: DescribeImages.
RegionId String Yes ID of the region to which an instance belongs. For more information, see Regions and zones.
ImageId String No The image ID. You can specify multiple image IDs and separate these IDs with a single-byte comma (,).
SnapshotId String No The ID of the snapshot used to create the image.
ImageName String No The name of the image.
ImageOwnerAlias string No The alias of the image owner. Optional value:
  • system: Public images provided by Alibaba Cloud.
  • self: Your custom images.
  • others: Your images that are shared from other Alibaba Cloud users.
  • marketplace: Images provided by marketplace vendors.
Default value: null. Null indicates that results of system, self, and others are returned.
Usage String No Queries whether the specified image is running on ECS instance or not. Optional values:
  • instance: The image is running in an ECS instance.
  • none: The image is not in use.
Tag.n.Key String No The key of a tag. The value range of n is [1, 5].
If you query the images according to tags, the value of Tag.n.Key cannot be a null string.
Tag.n.Value String No The value range of n is [1, 5].
If you query the images according to tags, the value of Tag.n.Value can be a null string.
PageNumber Integer No Page number of the instance status list. Start value: 1.
Default value: 1.
PageSize Integer No Sets the number of lines per page for queries per page. Maximum value: 50.
Default value: 10.

Response parameters

Name Type Description
RegionId String The region ID of the image.
TotalCount Integer The number of items on the list.
PageNumber Integer The current page.
PageSize Integer The number of items on the current page.
Images ImageType A collection composed of image information ImageType.


Request example

  2. &RegionId=cn-hangzhou
  3. &<Common Request Parameters>

Response example

XML format

  1. <DescribeImagesResponse>
  2. <Images>
  3. <Image>
  4. <Architecture>i386</Architecture>
  5. <CreationTime>2014-07-22T09:53:44Z</CreationTime>
  6. <Description></Description>
  7. <DiskDeviceMappings>
  8. <DiskDeviceMapping>
  9. <Device>/dev/xvda</Device>
  10. <Size>20</Size>
  11. <SnapshotId></SnapshotId>
  12. </DiskDeviceMapping>
  13. </DiskDeviceMappings>
  14. <ImageId>suse11sp3_64_20G_aliaegis_20150428.vhd</ImageId>
  15. <ImageName>suse11sp3_64_20G_aliaegis_20150428.vhd</ImageName>
  16. <ImageOwnerAlias>system</ImageOwnerAlias>
  17. <ImageVersion>1.0</ImageVersion>
  18. <IsCopied>false</IsCopied>
  19. <IsSubscribed>false</IsSubscribed>
  20. <OSName>SUSE Linux Enterprise Server 11 SP3 64bit</OSName>
  21. <ProductCode></ProductCode>
  22. <OSType>linux</OSType>
  23. <Platform>SUSE</Platform>
  24. <Progress>100</Progress>
  25. <Size>20</Size>
  26. <Status>Available</Status>
  27. <Usage>instance</Usage>
  28. </Image>
  29. </Images>
  30. <PageNumber>1</PageNumber>
  31. <PageSize>2</PageSize>
  32. <RegionId>cn-hangzhou</RegionId>
  33. <TotalCount>24</TotalCount>
  34. <RequestId>7871BB26-3002-4950-B2E6-98D333077EA5</RequestId>
  35. </DescribeImagesResponse>

JSON format

  1. {
  2. "Images": {
  3. "Image": [
  4. {
  5. "Architecture": "x86_64",
  6. "CreationTime": "2015-05-06T09:01:32Z",
  7. "DiskDeviceMappings": {
  8. "DiskDeviceMapping": [
  9. {
  10. "Device": "/dev/xvda",
  11. "Size": "20"
  12. }
  13. ]
  14. },
  15. "ImageId": "suse11sp3_64_20G_aliaegis_20150428.vhd",
  16. "ImageName": "suse11sp3_64_20G_aliaegis_20150428.vhd",
  17. "ImageOwnerAlias": "system",
  18. "ImageVersion": "1",
  19. "IsCopied": false,
  20. "IsSubscribed": false,
  21. "OSName": "SUSE Linux Enterprise Server 11 SP3 64bit",
  22. "OSType": "linux",
  23. "Platform": "SUSE",
  24. "Progress": "100%",
  25. "Size": 20,
  26. "Status": "Available",
  27. "Usage": "instance"
  28. }
  29. ]
  30. }
  31. "PageNumber": 1,
  32. "PageSize": 1,
  33. "RegionId": "cn-hangzhou",
  34. "RequestId": "49CBCED4-C9B9-4851-BEB5-8FB5E5169E30",
  35. "TotalCount": 24
  36. }

Error codes

Error code Error message HTTP status code Meaning
MissingParameter The input parameter RegionId that is mandatory for processing this request is not supplied. 400 You must specify the RegionId parameter.
InvalidImageOwnerAlias.ValueNotSupported The specified ImageOwnerAlias value is not supported. 400 Invalid ImageOwnerAlias value.
InvalidParameter The specified parameter PageNumber is not valid. 400 The specified PageNumber parameter is invalid.
InvalidParameter The specified parameter PageSize is not valid. 400 The specified PageSize parameter is invalid.
Thank you! We've received your feedback.