module Elasticsearch::XPack::API::Migration::Actions

Public Instance Methods

deprecations(arguments = {}) click to toggle source

Retrieves information about different cluster, node, and index level settings that use deprecated features that will be removed or changed in the next major version.

@option arguments [String] :index Index pattern @option arguments [Hash] :headers Custom HTTP headers

@see www.elastic.co/guide/en/elasticsearch/reference/7.14/migration-api-deprecation.html

# File lib/elasticsearch/xpack/api/actions/migration/deprecations.rb, line 30
def deprecations(arguments = {})
  headers = arguments.delete(:headers) || {}

  arguments = arguments.clone

  _index = arguments.delete(:index)

  method = Elasticsearch::API::HTTP_GET
  path   = if _index
             "#{Elasticsearch::API::Utils.__listify(_index)}/_migration/deprecations"
           else
             "_migration/deprecations"
           end
  params = {}

  body = nil
  perform_request(method, path, params, body, headers).body
end