mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
26 lines
760 B
Ruby
26 lines
760 B
Ruby
module Fog
|
|
module AWS
|
|
class EC2
|
|
|
|
# Describe all or specified IP addresses.
|
|
#
|
|
# ==== Parameters
|
|
# * public_ip<~Array> - List of ips to describe, defaults to all
|
|
#
|
|
# ==== Returns
|
|
# * response<~Fog::AWS::Response>:
|
|
# * body<~Hash>:
|
|
# * :request_id<~String> - Id of request
|
|
# * :address_set<~Array>:
|
|
# * :instance_id<~String> - instance for ip address
|
|
# * :public_ip<~String> - ip address for instance
|
|
def describe_addresses(public_ip = [])
|
|
params = indexed_params('PublicIp', public_ip)
|
|
request({
|
|
'Action' => 'DescribeAddresses'
|
|
}.merge!(params), Fog::Parsers::AWS::EC2::DescribeAddresses.new)
|
|
end
|
|
|
|
end
|
|
end
|
|
end
|