Skip to content

Commit 7716c2c

Browse files
elasticmachinepicandocodigo
authored andcommitted
[API] Updates inidces.explain_data_lifecycle
- Updates request method from POST to GET - Adds master_timeout parameter
1 parent dda6e49 commit 7716c2c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

elasticsearch-api/lib/elasticsearch/api/actions/indices/explain_data_lifecycle.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ module Actions
3030
#
3131
# @option arguments [String] :index The name of the index to explain
3232
# @option arguments [Boolean] :include_defaults indicates if the API should return the default values the system uses for the index's lifecycle
33+
# @option arguments [Time] :master_timeout Specify timeout for connection to master
3334
# @option arguments [Hash] :headers Custom HTTP headers
3435
#
3536
# @see https://www.elastic.co/guide/en/elasticsearch/reference/8.8/dlm-explain-lifecycle.html
@@ -44,7 +45,7 @@ def explain_data_lifecycle(arguments = {})
4445

4546
_index = arguments.delete(:index)
4647

47-
method = Elasticsearch::API::HTTP_POST
48+
method = Elasticsearch::API::HTTP_GET
4849
path = "#{Utils.__listify(_index)}/_lifecycle/explain"
4950
params = Utils.process_params(arguments)
5051

0 commit comments

Comments
 (0)