Sha256: 8caa61f80614d53cd37e543ef105787a03499fee7cdf99ccfc54ea630f8d9ecb
Contents?: true
Size: 1.41 KB
Versions: 5
Compression:
Stored size: 1.41 KB
Contents
# frozen_string_literal: true module Fog module DNS class PowerDNS class Real # Get details of a server's DNS zones # # ==== Parameters # * server<~String> - server id # # ==== Returns # * response<~Excon::Response>: # * body<~Hash>: # * zone<~Hash>: # * 'id': <~String>, # * "name": <~String>, # * 'type': <~String>, # * 'url': <~String>, # * 'kind': <~String>, # * 'serial': <~Integer>, # * 'notified_serial': <~Int>, # * 'masters': <~Array, # * 'dnssec': <~Boolean>, # * 'nsec3param': <~String>, # * 'nsec3narrow': <~Boolean>, # * 'presigned': <~Boolean>, # * 'soa_edit': '<~String>', # * 'soa_edit_api': '<~String>', # * 'account': '<~String>', # * 'nameservers': <~Array>, # * 'servers': <~Array>, # * 'recursion_desired': <~Boolean>, # * 'records': <~Array>, # * 'comments': <~Array>, # * status<~Integer> 200 when successful def list_zones(server) request( expects: 200, method: 'GET', path: "/api/#{@api_version}/servers/#{server}/zones" ).body end end end end end
Version data entries
5 entries across 3 versions & 2 rubygems