Module: Elasticsearch::API::SSL::Actions

Included in:
SSLClient
Defined in:
lib/elasticsearch/api/namespace/ssl.rb,
lib/elasticsearch/api/actions/ssl/certificates.rb

Instance Method Summary collapse

Instance Method Details

#certificates(arguments = {}) ⇒ Object

Retrieves information about the X.509 certificates used to encrypt communications in the cluster.

Parameters:

  • arguments (Hash) (defaults to: {})

    a customizable set of options

Options Hash (arguments):

  • :headers (Hash)

    Custom HTTP headers

See Also:



31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# File 'lib/elasticsearch/api/actions/ssl/certificates.rb', line 31

def certificates(arguments = {})
  request_opts = { endpoint: arguments[:endpoint] || 'ssl.certificates' }

  arguments = arguments.clone
  headers = arguments.delete(:headers) || {}

  body   = nil

  method = Elasticsearch::API::HTTP_GET
  path   = '_ssl/certificates'
  params = {}

  Elasticsearch::API::Response.new(
    perform_request(method, path, params, body, headers, request_opts)
  )
end