Sha256: 30db7a6d1239e864c20199acfe568761376434a9fd811a1836c5fe03c4abb147

Contents?: true

Size: 758 Bytes

Versions: 5

Compression:

Stored size: 758 Bytes

Contents

# frozen_string_literal: true

module Fog
  module DNS
    class PowerDNS
      class Real
        # Get all of a DNS server's config settings
        #
        # ==== Parameters
        # * server<~String> - server id
        #
        # ==== Returns
        # * response<~Excon::Response>:
        #   * body<~Array>:
        #       * Config<~Hash>:
        #         * 'type': <~String>,
        #         * 'name': <~String>,
        #         * 'value': <~String>
        #   * status<~String> - 200 when successful

        def list_server_configs(server)
          request(
            expects: 200,
            method: 'GET',
            path: "/api/#{@api_version}/servers/#{server}/config"
          ).body
        end
      end
    end
  end
end

Version data entries

5 entries across 3 versions & 2 rubygems

Version Path
fog-powerdns-0.2.1 lib/fog/dns/powerdns/requests/list_server_configs.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.3.0/gems/fog-powerdns-0.2.0/lib/fog/dns/powerdns/requests/list_server_configs.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.4.0/gems/fog-powerdns-0.2.0/lib/fog/dns/powerdns/requests/list_server_configs.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.5.0/gems/fog-powerdns-0.2.0/lib/fog/dns/powerdns/requests/list_server_configs.rb
fog-powerdns-0.2.0 lib/fog/dns/powerdns/requests/list_server_configs.rb