DescribeImages
Description
Returns information about AMIs, AKIs, and ARIs. This includes image type, product codes, architecture, and kernel and RAM disk IDs. Images available to you include public images, private images that you own, and private images owned by other users for which you have explicit launch permissions.
Launch permissions fall into three categories:
Launch Permission | Description |
---|---|
public | The owner of the AMI granted launch permissions for the AMI
to the all group. All users have launch permissions
for these AMIs. |
explicit | The owner of the AMI granted launch permissions to a specific user. |
implicit | A user has implicit launch permissions for all AMIs he or she owns. |
The list of AMIs returned can be modified by specifying AMI IDs, AMI owners, or users with launch permissions. If no options are specified, Amazon EC2 returns all AMIs for which the user has launch permissions.
If you specify one or more AMI IDs, only AMIs that have the specified IDs are returned. If you specify an invalid AMI ID, a fault is returned. If you specify an AMI ID for which you do not have access, it will not be included in the returned results.
If you specify one or more AMI owners, only AMIs from the
specified owners and for which you have access are returned. The
results can include the account IDs of the specified owners,
amazon
for AMIs owned by Amazon or
self
for AMIs that you own.
If you specify a list of executable users, only users that have
launch permissions for the AMIs are returned. You can specify
account IDs (if you own the AMI(s)), self
for AMIs for which you own or have explicit permissions, or
all
for public AMIs.
Note | |
---|---|
Deregistered images are included in the returned results for an unspecified interval after deregistration. |
Request Parameters
Name | Description | Required |
---|---|---|
|
Type: |
Ancestor: None
Children: executableBySet
, imagesSet
, and ownersSet
executableBySet
Executable set.
Type: DescribeImagesExecutableBySetType
Ancestor: DescribeImagesType
Children: item
Yes, but can be empty
item
Information for one user.
Type: DescribeImagesExecutableByType
Ancestor: executableBySet
Children: user
No
user
Returns AMIs for which the specified user has explicit launch permissions. The user ID can be a user's account ID,
Type: xsd:string
Default: None
Ancestor: item
Children: None
No
imagesSet
Image set.
Type: DescribeImagesInfoType
Ancestor: DescribeImagesType
Children: item
Yes, but can be empty
item
Information for one image.
Type: DescribeImagesItemType
Ancestor: imagesSet
Children: imageId
No
imageId
AMI IDs to describe.
Type: xsd:string
Default: Returns all AMIs.
Ancestor: item
Children: None
No
ownersSet
Information about an owner.
Type: DescribeImagesOwnersType
Ancestor: DescribeImagesType
Children: item
Yes, but can be empty
item
Information for one owner.
Type: DescribeImagesOwnerType
Ancestor: ownersSet
Children: owner
No
owner
Returns AMIs owned by the specified owner. Multiple owners can be specified. The IDs
Type: xsd:string
Default: None
Ancestor: item
Children: None
No
Response Elements
Name | Description |
---|---|
|
Type: DescribeImagesResponseType Ancestor: None Children: |
|
The ID of the request. Type: xsd:string Ancestor: Children: None |
|
Image set. Type: DescribeImagesResponseInfoType Ancestor: Children: |
|
Information for one image. Type: DescribeImagesResponseItemType Ancestor: Children: |
|
The ID of the AMI. Type: xsd:string Ancestor: Children: None |
|
The location of the AMI. Type: xsd:string Ancestor: Children: None |
|
Current state of the AMI. If the operation returns Type: xsd:string Ancestor: Children: None |
|
AWS Access Key ID of the image owner. Type: xsd:string Ancestor: Children: None |
|
Returns Type: xsd:boolean Ancestor: Children: None |
|
Product codes of the AMI. Type: ProductCodesSetType Ancestor: Children: |
|
Information for one product code. Type: ProductCodesSetItemType Ancestor: Children: |
|
Product code. Type: xsd:string Ancestor: Children: None |
|
The architecture of the image ( Type: xsd:string Ancestor: Children: None |
|
The type of image ( Type: xsd:string Ancestor: Children: None |
|
The kernel associated with the image, if any. Only applicable for machine images. Type: xsd:string Ancestor: Children: None |
|
The RAM disk associated with the image, if any. Only applicable for machine images. Type: xsd:string Ancestor: Children: None |
|
The operating platform of the instance. Type: xsd:string Ancestor: Children: None |
Examples
Example Request
This example describes the ami-be3adfd7 AMI.
<DescribeImages xmlns="http://ec2.amazonaws.com/doc/2009-08-15/"> <executableBySet> <item> <user>all</user> </item> </executableBySet> <ownersSet/> <imagesSet> <item> <imageId>ami-be3adfd7</imageId> </item> </imagesSet> </DescribeImages>
Example Response
<DescribeImagesResponse xmlns="http://ec2.amazonaws.com/doc/2009-08-15/"> <imagesSet> <item> <imageId>ami-be3adfd7</imageId> <imageLocation>ec2-public-images/fedora-8-i386-base-v1.04.manifest.xml </imageLocation> <imageState>available</imageState> <imageOwnerId>206029621532</imageOwnerId> <isPublic>false</isPublic> <architecture>i386</architecture> <imageType>machine</imageType> <kernelId>aki-4438dd2d</kernelId> <ramdiskId>ari-4538dd2c</ramdiskId> </item> </imagesSet> </DescribeImagesResponse>