Method: Elasticsearch::API::Migration::Actions#post_feature_upgrade

Defined in:
lib/elasticsearch/api/actions/migration/post_feature_upgrade.rb

#post_feature_upgrade(arguments = {}) ⇒ Object

Begin upgrades for system features

Parameters:

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

    a customizable set of options

Options Hash (arguments):

  • :headers (Hash)

    Custom HTTP headers

See Also:

[View source]

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

def post_feature_upgrade(arguments = {})
  request_opts = { endpoint: arguments[:endpoint] || 'migration.post_feature_upgrade' }

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

  body   = nil

  method = Elasticsearch::API::HTTP_POST
  path   = '_migration/system_features'
  params = {}

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