lib/ec2/right_ec2.rb
# Acquire a new elastic IP address for use with your account.
# Options: :domain.
# Returns allocated IP address or or an exception.
#
#  ec2.allocate_address #=>
#    { :public_ip => "50.19.214.224",
#      :domain    => "standard"}
#
#  ec2.allocate_address(:domain => 'vpc') #=>
#    { :allocation_id => "eipalloc-c6abfeaf",
#      :domain        => "vpc",
#      :public_ip     => "184.72.112.39"}
#
Acquire a new elastic IP address for use with your account.
Options: :domain.
Returns allocated IP address or or an exception.




Acquire a new elastic IP address for use with your account . Options : : domain . Returns allocated IP address or or an exception .
def allocate_address(options={})
      request_hash = {}
      request_hash['Domain'] = options[:domain] unless options[:domain].right_blank?
      link = generate_request("AllocateAddress", request_hash)
      request_info(link, QEc2AllocateAddressParser.new(:logger => @logger))
    rescue Exception
      on_exception
    end
def allocate_address ( options = { } ) request_hash = { } request_hash [ 'Domain' ] = options [ :domain ] unless options [ :domain ] . right_blank? link = generate_request ( "AllocateAddress" , request_hash ) request_info ( link , QEc2AllocateAddressParser . new ( :logger => @logger ) ) rescue Exception on_exception end
Acquire a new elastic IP address for use with your account.
Acquire a new elastic IP address for use with your account .
options
<not_specific>