DescribeImageAttribute
The DescribeImageAttribute
operation returns
information about an attribute of an AMI. Only one attribute
can be specified per call.
Request Parameters
The following table describes the request parameters for
DescribeImageAttribute
. Parameter names are case
sensitive.
Name | Description | Required |
---|---|---|
|
ID of the AMI for which an attribute will be described. Type: xsd:string |
Yes |
|
Describes launch permissions of the AMI. Type: EmptyElementType |
Choice |
|
Describes the product code associated with the AMI. Type: EmptyElementType |
Choice |
|
Describes the ID of the kernel associated with the AMI. Type: xsd:string |
No |
|
Describes the ID of the RAM disk associated with the AMI. Type: xsd:string |
No |
|
Describes the mapping that defines native device names to use when exposing virtual devices. Type: xsd:string |
No |
Response Elements
The following table describes the default response tags included
in DescribeImageAttribute
responses.
Name | Description |
---|---|
|
ID of the AMI of which parameters are described. Type: xsd:string |
|
Launch permissions of the AMI. Returned if Type: LaunchPermissionItemType[] |
|
Product codes of the AMI. Returned if Type: ProductCodeItemType[] |
|
ID of the kernel associated with the AMI. Returned if Type: xsd:string |
|
ID of the RAM disk associated with the AMI. Returned if Type: xsd:string |
|
Mapping that defines native device names to use when exposing
virtual devices. Returned if Type: BlockDeviceMappingItemType[] |
|
The operating platform of the instance. Type: xsd:string |
Sample Request - Launch Permission
<DescribeImageAttribute xmlns="http://ec2.amazonaws.com/doc/2009-03-01/"> <imageId>ami-61a54008</imageId> <launchPermission /> </DescribeImageAttribute>
Sample Response - Launch Permission
<DescribeImageAttributeResponse xmlns="http://ec2.amazonaws.com/doc/2009-03-01/"> <imageId>ami-61a54008</imageId> <launchPermission> <item> <group>all</group> </item> <item> <userId>495219933132</userId> </item> </launchPermission> </DescribeImageAttributeResponse>
Sample Request - Product Codes
<DescribeImageAttribute xmlns="http://ec2.amazonaws.com/doc/2009-03-01/"> <imageId>ami-61a54008</imageId> <productCodes /> </DescribeImageAttribute>
Sample Response - Product Codes
<DescribeImageAttributeResponse xmlns="http://ec2.amazonaws.com/doc/2009-03-01/"> <imageId>ami-61a54008</imageId> <productCodes> <item> <productCode>774F4FF8</productCode> </item> </productCodes> </DescribeImageAttributeResponse>