| Did this page help you? Yes No Tell us about it... |
Returns information about an attribute of an instance. You can get information about only one attribute per call. These are the available attributes:
instanceType—Instance type (e.g., m1.small)
kernel—ID of the kernel associated with the instance
ramdisk—ID of the RAM disk associated with the instance
userData—MIME, Base64-encoded user data provided to the instance
disableApiTermination—Whether the
instance can be terminated using the Amazon EC2 API (false
means the instance can be terminated with the API)
instanceInitiatedShutdownBehavior—Whether the instance stops or terminates when an instance shutdown is initiated (default is stop)
rootDeviceName—Root device name of the instance (e.g., /dev/sda1, or xvda)
blockDeviceMapping—Block device mapping of the instance
sourceDestCheck—This attribute
exists to enable a Network Address Translation (NAT) instance in a VPC to
perform NAT. The attribute controls whether source/destination checking is
enabled on the instance. A value of true means checking is
enabled. The value must be false for the instance to perform
NAT.
groupSet—Security groups the instance belongs to
| Name | Description | Required |
|---|---|---|
|
|
The instance ID. Type: String Default: None |
Yes |
|
|
The instance attribute to get. Type: String Default: None Valid Values: |
Yes |
The elements in the following table are wrapped in a
DescribeInstanceAttributeResponse structure.
| Name | Description |
|---|---|
|
|
The ID of the request. Type: xsd:string |
|
|
The ID of the instance. Type: xsd:string |
|
|
The instance type (e.g., m1.small), wrapped in a
Type: xsd:string |
|
|
The kernel ID, wrapped in a Type: xsd:string |
|
|
The RAM disk ID, wrapped in a Type: xsd:string |
|
|
MIME, Base64-encoded user data, wrapped in a
Type: xsd:string |
|
|
Boolean indicating whether the instance can be terminated
through the Amazon EC2 API. The value is wrapped in a
Type: xsd:boolean |
|
|
If an instance shutdown is initiated, this determines
whether the instance stops or terminates. The value is wrapped
in a Type: xsd:string Valid Values: |
|
|
The root device name (e.g., /dev/sda1), wrapped in a
Type: xsd:string |
|
|
List of block device mappings for the instance. Each
mapping's information is wrapped in an |
|
|
This attribute exists to enable a Network Address
Translation (NAT) instance in a VPC to perform NAT. The
attribute controls whether source/destination checking is
enabled on the instance. A value of Type: xsd:boolean |
|
|
Security groups the instance belongs to. Each group's
information is wrapped in an Type: GroupItemType |
This example lists the kernel ID of the i-10a64379 instance.
https://ec2.amazonaws.com/?Action=DescribeInstanceAttribute &InstanceId=i-10a64379 &Attribute=kernel &AUTHPARAMS
<DescribeInstanceAttributeResponse xmlns="http://ec2.amazonaws.com/doc/2011-12-15/">
<requestId>59dbff89-35bd-4eac-99ed-be587EXAMPLE</requestId>
<instanceId>i-10a64379</instanceId>
<kernel>
<value>aki-f70657b2</value>
</kernel>
</DescribeInstanceAttributeResponse>