module Elasticsearch::API::XPack::Actions

Public Instance Methods

info(arguments = {}) click to toggle source

Retrieves information about the installed X-Pack features.

@option arguments [List] :categories Comma-separated list of info categories. Can be any of: build, license, features @option arguments [Boolean] :accept_enterprise If this param is used it must be set to true Deprecated @option arguments [Hash] :headers Custom HTTP headers

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

# File lib/elasticsearch/api/actions/xpack/info.rb, line 33
def info(arguments = {})
  request_opts = { endpoint: arguments[:endpoint] || 'xpack.info' }

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

  body   = nil

  method = Elasticsearch::API::HTTP_GET
  path   = '_xpack'
  params = Utils.process_params(arguments)

  Elasticsearch::API::Response.new(
    perform_request(method, path, params, body, headers, request_opts)
  )
end
usage(arguments = {}) click to toggle source

Retrieves usage information about the installed X-Pack features.

@option arguments [Time] :master_timeout Specify timeout for watch write operation @option arguments [Hash] :headers Custom HTTP headers

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

# File lib/elasticsearch/api/actions/xpack/usage.rb, line 32
def usage(arguments = {})
  request_opts = { endpoint: arguments[:endpoint] || 'xpack.usage' }

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

  body   = nil

  method = Elasticsearch::API::HTTP_GET
  path   = '_xpack/usage'
  params = Utils.process_params(arguments)

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