Method: Elasticsearch::API::License::Actions#post_start_basic

Defined in:
lib/elasticsearch/api/actions/license/post_start_basic.rb

#post_start_basic(arguments = {}) ⇒ Object

Starts an indefinite basic license.

Parameters:

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

    a customizable set of options

Options Hash (arguments):

  • :acknowledge (Boolean)

    whether the user has acknowledged acknowledge messages (default: false)

  • :master_timeout (Time)

    Timeout for processing on master node

  • :timeout (Time)

    Timeout for acknowledgement of update from all nodes in cluster

  • :headers (Hash)

    Custom HTTP headers

See Also:


34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# File 'lib/elasticsearch/api/actions/license/post_start_basic.rb', line 34

def post_start_basic(arguments = {})
  request_opts = { endpoint: arguments[:endpoint] || 'license.post_start_basic' }

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

  body   = nil

  method = Elasticsearch::API::HTTP_POST
  path   = '_license/start_basic'
  params = Utils.process_params(arguments)

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