Method: Fog::Compute::AWS::Real#release_address

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

#release_address(public_ip) ⇒ Object

Release an elastic IP address.

Returns

  • response<~Excon::Response>:

    • body<~Hash>:

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

      • ‘return’<~Boolean> - success?

Amazon API Reference



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

def release_address(public_ip)
  request(
    'Action'    => 'ReleaseAddress',
    'PublicIp'  => public_ip,
    :idempotent => true,
    :parser     => Fog::Parsers::Compute::AWS::Basic.new
  )
end