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.
Request Parameters
The following table describes the request parameters for
AssociateAddress
. Parameter names are
case sensitive.
Name | Description | Required |
---|---|---|
|
The instance to which the IP address is assigned. Type: String |
Yes |
|
IP address that you are assigning to the instance. Type: String |
Yes |
Response Elements
The following table describes the default response tags included
in AssociateAddress
responses.
Name | Description |
---|---|
|
Type: xsd:boolean |
Sample Request
https://ec2.amazonaws.com/ ?Action=AssociateAddress &InstanceId=i-2ea64347 &PublicIp=67.202.55.255 &...auth parameters...
Sample Response
<AssociateAddressResponse xmlns="http://ec2.amazonaws.com/doc/2008-08-08"> <return>true</return> </AssociateAddressResponse>