Method: Elasticsearch::API::IndexLifecycleManagement::Actions#stop

Defined in:
lib/elasticsearch/api/actions/index_lifecycle_management/stop.rb

#stop(arguments = {}) ⇒ Object

Halts all lifecycle management operations and stops the index lifecycle management (ILM) plugin

Parameters:

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

    a customizable set of options

Options Hash (arguments):

  • :headers (Hash)

    Custom HTTP headers

See Also:


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

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

  body   = nil

  method = Elasticsearch::API::HTTP_POST
  path   = "_ilm/stop"
  params = {}

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