module Elasticsearch::API::SSL::Actions

Public Instance Methods

certificates(arguments = {}) click to toggle source

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

@option arguments [Hash] :headers Custom HTTP headers

@see www.elastic.co/guide/en/elasticsearch/reference/8.16/security-api-ssl.html

# 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