Sha256: 6ec740391380dd3a3e13ac9a7e29b7f08686f8e98505a168c83254085c040654
Contents?: true
Size: 1.6 KB
Versions: 5
Compression:
Stored size: 1.6 KB
Contents
# frozen_string_literal: true module Fog module DNS class PowerDNS class Real # Modify a single zone in PowerDNS # # ==== Parameters # server<~String> - server id # zone<~String> - zone id # options<~Hash> - pairs enumerated below # # # ==== Returns # * response<~Excon::Response>: # * body<~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 update_zone(server, zone, options = {}) body = {} options.each do |option, value| body[option] = value end request( body: Fog::JSON.encode(body), expects: 200, method: 'PUT', path: "/api/#{@api_version}/servers/#{server}/zones/#{zone}" ).body end end end end end
Version data entries
5 entries across 3 versions & 2 rubygems