Method: Fog::Compute::AWS::Real#allocate_address

Defined in:
lib/fog/compute/requests/aws/allocate_address.rb

#allocate_addressObject

Acquire an elastic IP address.

Returns

  • response<~Excon::Response>:

    • body<~Hash>:

      • ‘publicIp’<~String> - The acquired address

      • ‘requestId’<~String> - Id of the request

Amazon API Reference



17
18
19
20
21
22
# File 'lib/fog/compute/requests/aws/allocate_address.rb', line 17

def allocate_address
  request(
    'Action'  => 'AllocateAddress',
    :parser   => Fog::Parsers::Compute::AWS::AllocateAddress.new
  )
end