From 7716c2c9650c817782b5db51d1bf0b39cbd3c08f Mon Sep 17 00:00:00 2001 From: Elastic Machine Date: Sat, 6 May 2023 06:02:17 +0000 Subject: [PATCH] [API] Updates inidces.explain_data_lifecycle - Updates request method from POST to GET - Adds master_timeout parameter --- .../api/actions/indices/explain_data_lifecycle.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/explain_data_lifecycle.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/explain_data_lifecycle.rb index edaa2b4fdf..e779cf3232 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/explain_data_lifecycle.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/explain_data_lifecycle.rb @@ -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 @@ -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)