Sha256: e8acce42b0e06db29fb6fa498281fc98fdc0e1e0cfc62a6829640e9828dbe8cf

Contents?: true

Size: 924 Bytes

Versions: 9

Compression:

Stored size: 924 Bytes

Contents

module Fog
  module Slicehost
    class DNS
      class Real

        require 'fog/dns/parsers/slicehost/get_zone'

        # Get details of a DNS zone
        #
        # ==== Parameters
        # * zone_id<~Integer> - Id of zone to lookup
        #
        # ==== Returns
        # * response<~Excon::Response>:
        #   * body<~Hash>:
        #     * 'origin'<~String> - domain name to host (ie example.com)
        #     * 'id'<~Integer> - Id of the zone
        #     * 'ttl'<~Integer> - TimeToLive (ttl) for the domain, in seconds (> 60)
        #     * 'active'<~String> - whether zone is active in Slicehost DNS server - 'Y' or 'N'
        def get_zone(zone_id)
          request(
            :expects  => 200,
            :method   => 'GET',
            :parser   => Fog::Parsers::Slicehost::DNS::GetZone.new,
            :path     => "/zones/#{zone_id}.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/slicehost/get_zone.rb
fog-0.8.1 lib/fog/dns/requests/slicehost/get_zone.rb
fog-0.8.0 lib/fog/dns/requests/slicehost/get_zone.rb
fog-0.7.2 lib/fog/dns/requests/slicehost/get_zone.rb
fog-0.7.1 lib/fog/dns/requests/slicehost/get_zone.rb
fog-0.7.0 lib/fog/dns/requests/slicehost/get_zone.rb
fog-0.6.0 lib/fog/dns/requests/slicehost/get_zone.rb
fog-0.5.3 lib/fog/dns/requests/slicehost/get_zone.rb
fog-0.5.2 lib/fog/dns/requests/slicehost/get_zone.rb