Download Amazon Elastic Compute Cloud Developer Guide API

Transcript
Amazon Elastic Compute Cloud Developer Guide
DescribeImageAttribute
DescribeImageAttribute
The DescribeImageAttribute operation returns information about an attribute of an AMI. Only one
attribute may be specified per call.
Request Parameters
The following table describes the request parameters for DescribeImageAttribute. Parameter
names are case sensitive.
Element Name
Definition
Required?
Type
imageId
ID of the AMI for which an attribute will Yes
be described.
xsd:string
launchPermission
Describes launch permissions of the
AMI.
Choice
ec2:EmptyElementTyp
e
productCodes
Describes product codes of the AMI.
Choice
ec2:EmptyElementTyp
e
Response Tags
The following table describes the default response tags included in DescribeImageAttribute
responses.
Element Name
Definition
Type
imageId
ID of the AMI of which parameters are being
described.
xsd:string
launchPermission
Launch permissions of the AMI. Returned if
launchPermissions are being described.
ec2:LaunchPermissionIt
emType[]
productCodes
Product codes of the AMI. Returned if productCodes are being described.
ec2:ProductCodeItemTyp
e[]
Sample Request - Launch Permission
<DescribeImageAttribute xmlns="http://ec2.amazonaws.com/doc/2007-03-01">
<imageId>ami-61a54008</imageId>
<launchPermission />
</DescribeImageAttribute>
Sample Response - Launch Permission
<DescribeImageAttributeResponse xmlns="http://ec2.amazonaws.com/doc/2007-03-01">
<imageId>ami-61a54008</imageId>
<launchPermission>
<item>
<group>all</group>
</item>
<item>
API Version 2007-03-01
66