Print this pageEmail this pageGo to the ForumsView the PDFShare this page on TwitterShare this page on FacebookBookmark this page on DeliciousSubmit this page to RedditSubmit this page to Digg

DescribeAddresses

Description

Lists elastic IP addresses assigned to your account or provides information about a specific address.

You can filter the results to return information only about elastic IP addresses that match criteria you specify. For example, you could get information only about addresses tagged with a certain value. You can specify multiple values for a filter. An address must match at least one of the specified values for it to be included in the results.

You can specify multiple filters (e.g., the address is a particular value, and is tagged with a certain value). The result includes information for an address only if it matches all your filters. If there's no match, no special message is returned; the response is simply empty.

You can use wildcards with the filter values: * matches zero or more characters, and ? matches exactly one character. You can escape special characters using a backslash before the character. For example, a value of \*amazon\?\\ searches for the literal string *amazon?\.

The following table shows the available filters.

Filter Name Description

instance-id

Instance the address is associated with (if any).

Type: String

public-ip

The elastic IP address.

Type: String

Request Parameters

NameDescriptionRequired

PublicIp.n

One or more Elastic IP addresses.

Type: String

Default: None

No

Filter.n.Name

Name of a filter. See the preceding table for a list of allowed filter names.

Type: String

Default: None

No

Filter.n.Value.m

A value for the filter. See the preceding table for a list of allowed values for each filter.

Type: String

Default: None

No

Response Elements

The elements in the following table come wrapped in a DescribeAddressesResponse structure.

NameDescription

requestId

The ID of the request.

Type: xsd:string

addressesSet

A list of IP addresses. Each IP address's information is wrapped in an item element.

Type: DescribeAddressesResponseItemType

Examples

Example Request

This example describes elastic IP addresses assigned to the account. Amazon EC2 returns 67.202.55.255, which is assigned to instance i-f15ebb98, and 67.202.55.233, which is not assigned to an instance.

https://ec2.amazonaws.com/?Action=DescribeAddresses
&PublicIp.1=67.202.55.255
&PublicIp.2=67.202.55.233
&AuthParams

Example Response

<DescribeAddressesResponse xmlns="http://ec2.amazonaws.com/doc/2010-08-31/">
  <requestId>59dbff89-35bd-4eac-99ed-be587EXAMPLE</requestId> 
  <addressesSet> 
     <item>
        <publicIp>67.202.55.255</publicIp>
        <instanceId>i-f15ebb98</instanceId>
     </item>
     <item>
        <publicIp>67.202.55.233</publicIp>
        <instanceId/>
     </item> 
   </addressesSet> 
</DescribeAddressesResponse>