DescribeImageAttribute
The DescribeImageAttribute operation returns
information about an attribute of an AMI. Only one attribute
can be specified per call.
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: String |
Yes |
|
|
Specifies the attribute to describe. Type: String Valid Value: |
Yes |
| Attribute Name | Description | |
|---|---|---|
|
|
The AMIs launch permissions. |
|
|
|
ID of the AMI for which an attribute will be described. |
Yes Type: String |
|
|
The product code attached to the AMI. |
|
|
|
Describes the ID of the kernel associated with the AMI. Type: String |
No |
|
|
Describes the ID of RAM disk associated with the AMI. Type: String |
No |
|
|
Defines native device names to use when exposing virtual devices. Type: String |
No |
The following table describes the default response tags included
in DescribeImageAttribute responses.
| Name | Description |
|---|---|
|
|
ID of the AMI 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[] |
https://ec2.amazonaws.com/ ?Action=DescribeImageAttribute &ImageId=ami-61a54008 &Attribute=launchPermission &...auth parameters...
<DescribeImageAttributeResponse xmlns="http://ec2.amazonaws.com/doc/2008-02-01">
<imageId>ami-61a54008</imageId>
<launchPermission>
<item>
<group>all</group>
</item>
<item>
<userId>495219933132</userId>
</item>
</launchPermission>
</DescribeImageAttributeResponse>
https://ec2.amazonaws.com/ ?Action=DescribeImageAttribute &ImageId=ami-61a54008 &Attribute=productCodes &...auth parameters...
<DescribeImageAttributeResponse xmlns="http://ec2.amazonaws.com/doc/2007-01-03">
<imageId>ami-61a54008</imageId>
<productCodes>
<item>
<productCode>774F4FF8</productCode>
</item>
</productCodes>
</DescribeImageAttributeResponse>