Returns information about instances that you own.
Declaration Syntax
C# |
public DescribeInstancesResponse DescribeInstances( DescribeInstancesRequest request )
Parameters
- request (DescribeInstancesRequest)
- Describe Instances request
Return Value
Describe Instances Response from the service
Remarks
If you specify one or more instance IDs, Amazon EC2 returns
information for those instances.
If you do not specify instance IDs, Amazon EC2 returns information
for all relevant instances. If you
specify an invalid instance ID, a fault is returned.
If you specify an instance that you do not own, it will not be
included in the returned results.
Recently terminated instances might appear in the returned results.This
interval is usually less than one hour.
Exceptions
Exception | Condition |
---|---|
WebException | |
AmazonEC2Exception |