Method: Elasticsearch::API::License::Actions#post_start_trial

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

#post_start_trial(arguments = {}) ⇒ Object

starts a limited time trial license.

Parameters:

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

    a customizable set of options

Options Hash (arguments):

  • :type (String)

    The type of trial license to generate (default: “trial”)

  • :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:

[View source]

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

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

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

  body   = nil

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

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