Skip to content

Commit

Permalink
[API] Updates inidces.explain_data_lifecycle
Browse files Browse the repository at this point in the history
- Updates request method from POST to GET
- Adds master_timeout parameter
  • Loading branch information
elasticmachine authored and picandocodigo committed May 9, 2023
1 parent dda6e49 commit 7716c2c
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ module Actions
#
# @option arguments [String] :index The name of the index to explain
# @option arguments [Boolean] :include_defaults indicates if the API should return the default values the system uses for the index's lifecycle
# @option arguments [Time] :master_timeout Specify timeout for connection to master
# @option arguments [Hash] :headers Custom HTTP headers
#
# @see https://www.elastic.co/guide/en/elasticsearch/reference/8.8/dlm-explain-lifecycle.html
Expand All @@ -44,7 +45,7 @@ def explain_data_lifecycle(arguments = {})

_index = arguments.delete(:index)

method = Elasticsearch::API::HTTP_POST
method = Elasticsearch::API::HTTP_GET
path = "#{Utils.__listify(_index)}/_lifecycle/explain"
params = Utils.process_params(arguments)

Expand Down

0 comments on commit 7716c2c

Please sign in to comment.