mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
27 lines
846 B
Ruby
27 lines
846 B
Ruby
module Fog
|
|
module AWS
|
|
class EC2
|
|
|
|
# Describe all or specified availability zones
|
|
#
|
|
# ==== Params
|
|
# * zone_name<~String> - List of availability zones to describe, defaults to all
|
|
#
|
|
# ==== Returns
|
|
# * response<~Fog::AWS::Response>:
|
|
# * body<~Hash>:
|
|
# * :request_id<~String> - Id of request
|
|
# * :availability_zone_info<~Array>:
|
|
# * :region_name<~String> - Name of region
|
|
# * :zone_name<~String> - Name of zone
|
|
# * :zone_state<~String> - State of zone
|
|
def describe_availability_zones(zone_name = [])
|
|
params = indexed_params('ZoneName', zone_name)
|
|
request({
|
|
'Action' => 'DescribeAvailabilityZones'
|
|
}.merge!(params), Fog::Parsers::AWS::EC2::DescribeAvailabilityZones.new)
|
|
end
|
|
|
|
end
|
|
end
|
|
end
|