Sha256: 93f04664de9bd4ef031297c1a5c7ffee82acbdbd888072118d0966eb0aac711c

Contents?: true

Size: 1.17 KB

Versions: 9

Compression:

Stored size: 1.17 KB

Contents

module Fog
  module Zerigo
    class DNS
      class Real

        require 'fog/dns/parsers/zerigo/list_hosts'

        # Get list of all DNS zones hosted on Slicehost (for this account)
        #
        # ==== Parameters
        # * zone_id<~Integer> - the zone ID of the zone from which to get the host records for
        # ==== Returns
        # * response<~Excon::Response>:
        #   * body<~Hash>:
        #     * 'hosts'<~Array>
        #       * 'created-at'<~String>
        #       * 'data'<~String>
        #       * 'fqdn'<~String>
        #       * 'host-type'<~String>
        #       * 'hostname'<~String>
        #       * 'id'<~Integer>
        #       * 'notes'<~String>
        #       * 'priority'<~Integer>
        #       * 'ttl'<~Integer>
        #       * 'updated-at'<~String>
        #       * 'zone-id'<~String>
        # * 'status'<~Integer> - 200 indicates success
        def list_hosts( zone_id)
          request(
            :expects  => 200,
            :method   => 'GET',
            :parser   => Fog::Parsers::Zerigo::DNS::ListHosts.new,
            :path     => "/api/1.1/zones/#{zone_id}/hosts.xml"
          )
        end

      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
fog-0.8.2 lib/fog/dns/requests/zerigo/list_hosts.rb
fog-0.8.1 lib/fog/dns/requests/zerigo/list_hosts.rb
fog-0.8.0 lib/fog/dns/requests/zerigo/list_hosts.rb
fog-0.7.2 lib/fog/dns/requests/zerigo/list_hosts.rb
fog-0.7.1 lib/fog/dns/requests/zerigo/list_hosts.rb
fog-0.7.0 lib/fog/dns/requests/zerigo/list_hosts.rb
fog-0.6.0 lib/fog/dns/requests/zerigo/list_hosts.rb
fog-0.5.3 lib/fog/dns/requests/zerigo/list_hosts.rb
fog-0.5.2 lib/fog/dns/requests/zerigo/list_hosts.rb