Sha256: 8324adcc24c802989b01be2c58257d6e72e1d5a8c645b2da01bd9c50f9a0efc4

Contents?: true

Size: 1.05 KB

Versions: 9

Compression:

Stored size: 1.05 KB

Contents

module Fog
  module Zerigo
    class DNS
      class Real

        require 'fog/dns/parsers/zerigo/get_host'

        # get details about a given host record
        #
        # ==== Parameters
        # * host_id<~Integer> - ID of the host record to retrieve
        # ==== Returns
        # * response<~Excon::Response>: 
        #   * body<~Hash>:
        #     * '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 get_host( host_id)
          request(
            :expects  => 200,
            :method   => 'GET',
            :parser   => Fog::Parsers::Zerigo::DNS::GetHost.new,
            :path     => "/api/1.1/hosts/#{host_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/zerigo/get_host.rb
fog-0.8.1 lib/fog/dns/requests/zerigo/get_host.rb
fog-0.8.0 lib/fog/dns/requests/zerigo/get_host.rb
fog-0.7.2 lib/fog/dns/requests/zerigo/get_host.rb
fog-0.7.1 lib/fog/dns/requests/zerigo/get_host.rb
fog-0.7.0 lib/fog/dns/requests/zerigo/get_host.rb
fog-0.6.0 lib/fog/dns/requests/zerigo/get_host.rb
fog-0.5.3 lib/fog/dns/requests/zerigo/get_host.rb
fog-0.5.2 lib/fog/dns/requests/zerigo/get_host.rb