Sha256: 2d30614b76a342c123ff29d46c0894c1390de5a22d5718362cbb9d9ffa463465

Contents?: true

Size: 983 Bytes

Versions: 36

Compression:

Stored size: 983 Bytes

Contents

#--
# Amazon Web Services EC2 Query API Ruby library
#
# Ruby Gem Name::  amazon-ec2
# Author::    Glenn Rempe  (mailto:glenn@rempe.us)
# Copyright:: Copyright (c) 2007-2008 Glenn Rempe
# License::   Distributes under the same terms as Ruby
# Home::      http://github.com/grempe/amazon-ec2/tree/master
#++

module EC2

  class Base

    #Amazon Developer Guide Docs:
    #
    # The DescribeAvailabilityZones operation describes availability zones that are currently
    # available to the account and their states.
    #
    # An optional list of zone names can be passed.
    #
    #Required Arguments:
    #
    # none
    #
    #Optional Arguments:
    #
    # :zone_name => Array (default : [])
    #

    def describe_availability_zones( options = {} )

      options = { :zone_name => [] }.merge(options)

      params = pathlist("ZoneName", options[:zone_name] )

      return response_generator(:action => "DescribeAvailabilityZones", :params => params)

    end
  end
end

Version data entries

36 entries across 36 versions & 5 rubygems

Version Path
grempe-amazon-ec2-0.3.1 lib/EC2/availability_zones.rb
grempe-amazon-ec2-0.3.2 lib/EC2/availability_zones.rb
grempe-amazon-ec2-0.3.3 lib/EC2/availability_zones.rb
grempe-amazon-ec2-0.3.4 lib/EC2/availability_zones.rb
grempe-amazon-ec2-0.3.5 lib/EC2/availability_zones.rb
grempe-amazon-ec2-0.3.6 lib/EC2/availability_zones.rb
grempe-amazon-ec2-0.3.7 lib/EC2/availability_zones.rb
grempe-amazon-ec2-0.3.8 lib/EC2/availability_zones.rb
grempe-amazon-ec2-0.4.0 lib/EC2/availability_zones.rb
grempe-amazon-ec2-0.4.1 lib/EC2/availability_zones.rb
grempe-amazon-ec2-0.4.2 lib/EC2/availability_zones.rb
grempe-amazon-ec2-0.4.3 lib/EC2/availability_zones.rb
grempe-amazon-ec2-0.4.4 lib/EC2/availability_zones.rb
grempe-amazon-ec2-0.4.5 lib/EC2/availability_zones.rb
grempe-amazon-ec2-0.4.6 lib/EC2/availability_zones.rb
grempe-amazon-ec2-0.4.8 lib/EC2/availability_zones.rb
kerryb-amazon-ec2-0.3.6 lib/EC2/availability_zones.rb
kerryb-amazon-ec2-0.3.7 lib/EC2/availability_zones.rb
kerryb-amazon-ec2-0.3.8 lib/EC2/availability_zones.rb
kerryb-amazon-ec2-0.3.9 lib/EC2/availability_zones.rb