|« PreviousNext »|
|Did this page help you? Yes | No | Tell us about it...|
Disassociates an Elastic IP address from the instance or network interface it's associated with.
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.
This is an idempotent action. If you enter it more than once, Amazon EC2 does not return an error.
[EC2-Classic] The Elastic IP address.
Condition: Required for EC2-Classic
[EC2-VPC] The association ID corresponding to the Elastic IP address.
Condition: Required for EC2-VPC
The following elements are returned in a
The ID of the request.
true if the request succeeds. Otherwise,
returns an error.
This example disassociates the EC2 Elastic IP address 184.108.40.206 from the instance to which it is assigned.
https://ec2.amazonaws.com/?Action=DisassociateAddress &PublicIp=192.0.2.1 &AUTHPARAMS
This example disassociates the Elastic IP address with association ID eipassoc-aa7486c3 from the instance in a VPC to which it is assigned.
https://ec2.amazonaws.com/?Action=DisassociateAddress &AssociationID=eipassoc-aa7486c3 &AUTHPARAMS
<DisassociateAddressResponse xmlns="http://ec2.amazonaws.com/doc/2013-02-01/"> <requestId>59dbff89-35bd-4eac-99ed-be587EXAMPLE</requestId> <return>true</return> </DisassociateAddressResponse>