Sha256: d09d71ed47222858c80f0e964df59bababb9a055434d88232c69097f61c97e6f

Contents?: true

Size: 924 Bytes

Versions: 25

Compression:

Stored size: 924 Bytes

Contents

module Fog
  module DNS
    class Slicehost
      class Real

        require 'fog/slicehost/parsers/dns/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::DNS::Slicehost::GetZone.new,
            :path     => "/zones/#{zone_id}.xml"
          )
        end

      end
    end
  end
end

Version data entries

25 entries across 25 versions & 7 rubygems

Version Path
brightbox-cli-0.18.1 lib/brightbox-cli/vendor/fog/lib/fog/slicehost/requests/dns/get_zone.rb
michiels-fog-1.3.1 lib/fog/slicehost/requests/dns/get_zone.rb
ftl-0.2.0 vendor/bundle/gems/fog-1.3.1/lib/fog/slicehost/requests/dns/get_zone.rb
brightbox-cli-0.18.0 lib/brightbox-cli/vendor/fog/lib/fog/slicehost/requests/dns/get_zone.rb
fog-1.3.1 lib/fog/slicehost/requests/dns/get_zone.rb
fog-1.3.0 lib/fog/slicehost/requests/dns/get_zone.rb
brightbox-cli-0.17.5 lib/brightbox-cli/vendor/fog/lib/fog/slicehost/requests/dns/get_zone.rb
fog-1.2.0 lib/fog/slicehost/requests/dns/get_zone.rb
ktheory-fog-1.1.2 lib/fog/slicehost/requests/dns/get_zone.rb
brightbox-cli-0.17.4 lib/brightbox-cli/vendor/fog/lib/fog/slicehost/requests/dns/get_zone.rb
brightbox-cli-0.17.3 lib/brightbox-cli/vendor/fog/lib/fog/slicehost/requests/dns/get_zone.rb
brightbox-cli-0.17.2 lib/brightbox-cli/vendor/fog/lib/fog/slicehost/requests/dns/get_zone.rb
brightbox-cli-0.17.1 lib/brightbox-cli/vendor/fog/lib/fog/slicehost/requests/dns/get_zone.rb
brightbox-cli-0.17.0 lib/brightbox-cli/vendor/fog/lib/fog/slicehost/requests/dns/get_zone.rb
fog-1.1.2 lib/fog/slicehost/requests/dns/get_zone.rb
fog_tractical-1.1.4 lib/fog/slicehost/requests/dns/get_zone.rb
fog_tractical-1.1.3 lib/fog/slicehost/requests/dns/get_zone.rb
brightbox-cli-0.16.0 lib/brightbox-cli/vendor/fog/lib/fog/slicehost/requests/dns/get_zone.rb
fog-1.1.1 lib/fog/slicehost/requests/dns/get_zone.rb
fog-1.1.0 lib/fog/slicehost/requests/dns/get_zone.rb