lib/ec2/right_ec2.rb
# Disassociate the specified elastic IP address from the instance to which it is assigned.
# Options: :public_ip, :association_id.
# Returns +true+ or an exception.
# 
#  ec2.disassociate_address(:public_ip => '75.101.154.140') #=> true
#
Disassociate the specified elastic IP address from the instance to which it is assigned.


Disassociate the specified elastic IP address from the instance to which it is assigned .
def disassociate_address(options = {})
      request_hash = {}
      request_hash['PublicIp']      = options[:public_ip]      unless options[:public_ip].right_blank?
      request_hash['AssociationId'] = options[:association_id] unless options[:association_id].right_blank?
      link = generate_request("DisassociateAddress", request_hash)
      request_info(link, RightBoolResponseParser.new(:logger => @logger))
    rescue Exception
      on_exception
    end
def disassociate_address ( options = { } ) request_hash = { } request_hash [ 'PublicIp' ] = options [ :public_ip ] unless options [ :public_ip ] . right_blank? request_hash [ 'AssociationId' ] = options [ :association_id ] unless options [ :association_id ] . right_blank? link = generate_request ( "DisassociateAddress" , request_hash ) request_info ( link , RightBoolResponseParser . new ( :logger => @logger ) ) rescue Exception on_exception end
Disassociate the specified elastic IP address from the instance to which it is assigned.
Disassociate the specified elastic IP address from the instance to which it is assigned .
options
<not_specific>