Sha256: 42f7fb61a281e8f51c23dbf8caa477b0f8e4539e862267da3d374d4553c3a51f
Contents?: true
Size: 1.28 KB
Versions: 4
Compression:
Stored size: 1.28 KB
Contents
module Fog module Zerigo class DNS class Real require 'fog/zerigo/parsers/dns/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 class Mock def list_hosts( zone_id) Fog::Mock.not_implemented end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems