DescribeAddresses - Amazon Elastic Compute Cloud
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).


Describes the specified Elastic IP addresses or all of your Elastic IP addresses.

An Elastic IP address is for use in either the EC2-Classic platform or in a VPC. For more information, see Elastic IP Addresses in the Amazon Elastic Compute Cloud User Guide.


We are retiring EC2-Classic. We recommend that you migrate from EC2-Classic to a VPC. For more information, see Migrate from EC2-Classic to a VPC in the Amazon Elastic Compute Cloud User Guide.

Request Parameters

The following parameters are for this specific action. For more information about required and optional parameters that are common to all actions, see Common Query Parameters.


[EC2-VPC] Information about the allocation IDs.

Type: Array of strings

Required: No


Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

Type: Boolean

Required: No


One or more filters. Filter names and values are case-sensitive.

  • allocation-id - [EC2-VPC] The allocation ID for the address.

  • association-id - [EC2-VPC] The association ID for the address.

  • domain - Indicates whether the address is for use in EC2-Classic (standard) or in a VPC (vpc).

  • instance-id - The ID of the instance the address is associated with, if any.

  • network-border-group - A unique set of Availability Zones, Local Zones, or Wavelength Zones from where Amazon advertises IP addresses.

  • network-interface-id - [EC2-VPC] The ID of the network interface that the address is associated with, if any.

  • network-interface-owner-id - The Amazon Web Services account ID of the owner.

  • private-ip-address - [EC2-VPC] The private IP address associated with the Elastic IP address.

  • public-ip - The Elastic IP address, or the carrier IP address.

  • tag:<key> - The key/value combination of a tag assigned to the resource. Use the tag key in the filter name and the tag value as the filter value. For example, to find all resources that have a tag with the key Owner and the value TeamA, specify tag:Owner for the filter name and TeamA for the filter value.

  • tag-key - The key of a tag assigned to the resource. Use this filter to find all resources assigned a tag with a specific key, regardless of the tag value.

Type: Array of Filter objects

Required: No


One or more Elastic IP addresses.

Default: Describes all your Elastic IP addresses.

Type: Array of strings

Required: No

Response Elements

The following elements are returned by the service.


Information about the Elastic IP addresses.

Type: Array of Address objects


The ID of the request.

Type: String


For information about the errors that are common to all actions, see Common client error codes.


Example for EC2-Classic

This example request describes two specific Elastic IP addresses allocated to your account. Both addresses were created for instances in EC2-Classic, so you must specify them using their IP addresses. The address is assigned to instance i-1234567890abcdef0, and isn't assigned to an instance.

Sample Request &PublicIp.1= &PublicIp.2= &AUTHPARAMS

Sample Response

<DescribeAddressesResponse xmlns=""> <requestId>59dbff89-35bd-4eac-99ed-be587EXAMPLE</requestId> <addressesSet> <item> <publicIp></publicIp> <domain>standard</domain> <instanceId>i-1234567890abcdef0</instanceId> </item> <item> <publicIp></publicIp> <domain>standard</domain> <instanceId/> </item> </addressesSet> </DescribeAddressesResponse>

Example 1 for EC2-VPC

This example request describes a specific Elastic IP address allocated to your account. This address was created for instances in EC2-VPC, so you must use the allocation ID to specify the address.

Sample Request &AllocationId.1= eipalloc-08229861 &AUTHPARAMS

Sample Response

<DescribeAddressesResponse xmlns=""> <requestId>f7de5e98-491a-4c19-a92d-908d6EXAMPLE</requestId> <addressesSet> <item> <publicIp></publicIp> <allocationId>eipalloc-08229861</allocationId> <domain>vpc</domain> <instanceId>i-0598c7d356eba48d7</instanceId> <associationId>eipassoc-f0229899</associationId> <networkInterfaceId>eni-ef229886</networkInterfaceId> <networkInterfaceOwnerId>053230519467</networkInterfaceOwnerId> <privateIpAddress></privateIpAddress> </item> </addressesSet> </DescribeAddressesResponse>

Example 2 for EC2-VPC

This example describes your Elastic IP addresses for EC2-VPC only.

Sample Request &Filter.1.Name=domain &Filter.1.Value.1=vpc &AUTHPARAMS

See Also

For more information about using this API in one of the language-specific Amazon SDKs, see the following: