DescribeInstanceAttribute
In this article:
DescribeInstanceAttribute#
Description#
Describes the specified attribute of a given VPC. If you specify multiple parameter names separated by commas, you can get their values in one request. In the AWS EC2 API, you can only retrieve the values of one instance parameter per request.
Request Parameters#
instanceId — The ID of the instance.
Type: String
Required: Yes
Attribute — The instance attribute.
Type: String
Required: Yes
Valid values:
blockDeviceMapping
|disableApiTermination
|instanceInitiatedShutdownBehavior
|instanceType
|rootDeviceName
|sourceDestCheck
|userData
Response Elements#
attribute — The instance attribute.
Type: String
instanceId — The ID of the instance.
Type: String
requestId — The request ID
Type: String
Examples#
c2-ec2 DescribeInstanceAttribute InstanceId i-01234567 Attribute instanceType