AWS SDK Version 3 for .NET
API Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

Describes the AMI that was used to launch an instance, even if the AMI is deprecated, deregistered, made private (no longer public or shared with your account), or not allowed.

If you specify instance IDs, the output includes information for only the specified instances. If you specify filters, the output includes information for only those instances that meet the filter criteria. If you do not specify instance IDs or filters, the output includes information for all instances, which can affect performance.

If you specify an instance ID that is not valid, an instance that doesn't exist, or an instance that you do not own, an error (InvalidInstanceID.NotFound) is returned.

Recently terminated instances might appear in the returned results. This interval is usually less than one hour.

In the rare case where an Availability Zone is experiencing a service disruption and you specify instance IDs that are in the affected Availability Zone, or do not specify any instance IDs at all, the call fails. If you specify only instance IDs that are in an unaffected Availability Zone, the call works normally.

The order of the elements in the response, including those within nested structures, might vary. Applications should not assume the elements appear in a particular order.

Note:

For .NET Core this operation is only available in asynchronous form. Please refer to DescribeInstanceImageMetadataAsync.

Namespace: Amazon.EC2
Assembly: AWSSDK.EC2.dll
Version: 3.x.y.z

Syntax

C#
public virtual DescribeInstanceImageMetadataResponse DescribeInstanceImageMetadata(
         DescribeInstanceImageMetadataRequest request
)

Parameters

request
Type: Amazon.EC2.Model.DescribeInstanceImageMetadataRequest

Container for the necessary parameters to execute the DescribeInstanceImageMetadata service method.

Return Value


The response from the DescribeInstanceImageMetadata service method, as returned by EC2.

Version Information

.NET Framework:
Supported in: 4.5 and newer, 3.5

See Also