Sha256: a35004b15335e8b497958b69db54125759932a16c0e152dc59ad3006a3911d05

Contents?: true

Size: 1.07 KB

Versions: 9

Compression:

Stored size: 1.07 KB

Contents

module Fog
  module Slicehost
    class DNS
      class Real

        require 'fog/dns/parsers/slicehost/get_record'

        # Get an individual DNS record from the specified zone 
        #
        # ==== Returns
        # * response<~Excon::Response>:
        #   * body<~Hash>:
        #     * 'record_type'<~String> - type of DNS record to create (A, CNAME, etc)
        #     * 'zone_id'<~Integer> - ID of the zone to update
        #     * 'name'<~String> - host name this DNS record is for 
        #     * 'data'<~String> - data for the DNS record (ie for an A record, the IP address)
        #     * 'ttl'<~Integer> - time to live in seconds
        #     * 'active'<~String> - whether this record is active or not ('Y' or 'N')
        #     * 'aux'<~String> - extra data required by the record
        def get_record(record_id)
          request(
            :expects  => 200,
            :method   => 'GET',
            :parser   => Fog::Parsers::Slicehost::DNS::GetRecords.new,
            :path     => "records/#{record_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_record.rb
fog-0.8.1 lib/fog/dns/requests/slicehost/get_record.rb
fog-0.8.0 lib/fog/dns/requests/slicehost/get_record.rb
fog-0.7.2 lib/fog/dns/requests/slicehost/get_record.rb
fog-0.7.1 lib/fog/dns/requests/slicehost/get_record.rb
fog-0.7.0 lib/fog/dns/requests/slicehost/get_record.rb
fog-0.6.0 lib/fog/dns/requests/slicehost/get_record.rb
fog-0.5.3 lib/fog/dns/requests/slicehost/get_record.rb
fog-0.5.2 lib/fog/dns/requests/slicehost/get_record.rb