Sha256: 73301241cda841179d8690ed6bb93cbda0d4d0c53a0d70dbbfb7d21733c27d41
Contents?: true
Size: 1.53 KB
Versions: 9
Compression:
Stored size: 1.53 KB
Contents
module Fog module Zerigo class DNS class Real require 'fog/dns/parsers/zerigo/get_zone' # Get details of a DNS zone. The response is similar to list_zones, with the # addition of hosts-count and possibly hosts. # # ==== Parameters # * zone<~String> - Either the zone ID or the zone name (ie sample-domain.com) # # ==== Returns # * response<~Excon::Response>: # * body<~Hash>: # * 'default-ttl'<~Integer> # * 'id'<~Integer> # * 'nx-ttl'<~Integer> # * 'hosts-count'<~Integer> # * 'created-at'<~String> # * 'custom-nameservers'<~String> # * 'custom-ns'<~String> # * 'domain'<~String> # * 'hostmaster'<~String> # * 'notes'<~String> # * 'ns1'<~String> # * 'ns-type'<~String> # * 'slave-nameservers'<~String> # * 'tag-list'<~String> # * 'updated-at'<~String> # * 'hosts'<~Array> - a list of all host records. For the format of host info, see get_host() # * 'axfr-ips'<~String> # * 'restrict-axfr'<~String> # * 'status'<~Integer> - 200 indicates success def get_zone(zone) request( :expects => 200, :method => 'GET', :parser => Fog::Parsers::Zerigo::DNS::GetZone.new, :path => "/api/1.1/zones/#{zone}.xml" ) end end end end end
Version data entries
9 entries across 9 versions & 1 rubygems