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.
Name | Description | Required |
---|---|---|
|
The instance to which the IP address is assigned. Type: xsd:string |
Yes |
|
IP address that you are assigning to the instance. Type: xsd:string |
Yes |
The following table describes the default response tags included
in AssociateAddress
responses.
Name | Description |
---|---|
|
Type: xsd:boolean |
<AssociateAddress xmlns="http://ec2.amazonaws.com/doc/2008-02-01"> <instanceId>i-28a64341</instanceId> <publicIp>67.202.55.255</publicIp> </AssociateAddress>
<AssociateAddressResponse xmlns="http://ec2.amazonaws.com/doc/2008-02-01"> <return>true</return> </AssociateAddressResponse>