Sha256: bb45ad61ad648187b7de3d1f32f155054cd57f506d4300a4c90346c5e462c202

Contents?: true

Size: 979 Bytes

Versions: 5

Compression:

Stored size: 979 Bytes

Contents

# frozen_string_literal: true

module Fog
  module DNS
    class PowerDNS
      class Real
        # Get details of a cryptokey
        #
        # ==== Parameters
        # * server<~String> - server id
        # * zone<~String> - zone id
        # * cryptokey<~String> - cryptokey id

        #
        # ==== Returns
        # * response<~Excon::Response>:
        #   * body<~Hash>:
        #     * 'type': <~String>,
        #     * 'id': <~Integer>,
        #     * 'active': <~Boolean>,
        #     * 'keytype': <~String>,
        #     * 'dnskey': <~String>,
        #     * 'content': <~String>,
        #     * 'ds': <~Array>
        #   * status<~Integer> - 200 when successful
        #

        def get_cryptokey(server, zone, cryptokey)
          request(
            expects: 200,
            method: 'GET',
            path: "/api/#{@api_version}/servers/#{server}/zones/#{zone}/cryptokeys/#{cryptokey}"
          ).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/get_cryptokey.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.3.0/gems/fog-powerdns-0.2.0/lib/fog/dns/powerdns/requests/get_cryptokey.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.4.0/gems/fog-powerdns-0.2.0/lib/fog/dns/powerdns/requests/get_cryptokey.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.5.0/gems/fog-powerdns-0.2.0/lib/fog/dns/powerdns/requests/get_cryptokey.rb
fog-powerdns-0.2.0 lib/fog/dns/powerdns/requests/get_cryptokey.rb