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:


28
29
30
31
32
33
34
35
36
37
38
39
40
41
# File 'lib/elasticsearch/api/actions/ssl/certificates.rb', line 28

def certificates(arguments = {})
  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)
  )
end