AssociateAddress

The AssociateAddress operation associates an elastic IP address with an instance.

If the IP address is currently assigned to another instance, the IP address is assigned to the new instance. This is an idempotent operation. If you enter it more than once, Amazon EC2 does not return an error.

The following table describes the request parameters for AssociateAddress. Parameter names are case sensitive.

NameDescriptionRequired

InstanceId

The instance to which the IP address is assigned.

Type: String

Yes

PublicIp

IP address that you are assigning to the instance.

Type: String

Yes

The following table describes the default response tags included in AssociateAddress responses.

NameDescription

return

true if the IP address is associated with the instance. Otherwise, false.

Type: xsd:boolean

https://ec2.amazonaws.com/
?Action=AssociateAddress
&InstanceId=i-2ea64347
&PublicIp=67.202.55.255
&...auth parameters...
<AssociateAddressResponse xmlns="http://ec2.amazonaws.com/doc/2008-02-01">
  <return>true</return>
</AssociateAddressResponse>