1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00
fog--fog/lib/fog/aws/requests/ec2/disassociate_address.rb
2009-08-01 01:15:44 -07:00

24 lines
No EOL
607 B
Ruby

module Fog
module AWS
class EC2
# Disassociate an elastic IP address from its instance (if any)
#
# ==== Parameters
# * public_ip<~String> - Public ip to assign to instance
#
# ==== Returns
# * response<~Fog::AWS::Response>:
# * body<~Hash>:
# * 'requestId'<~String> - Id of request
# * 'return'<~Boolean> - success?
def disassociate_address(public_ip)
request({
'Action' => 'DisassociateAddress',
'PublicIp' => public_ip
}, Fog::Parsers::AWS::EC2::Basic.new)
end
end
end
end