elasticsearch-api/lib/elasticsearch/api/actions/index_lifecycle_management/retry.rb
# Retries executing the policy for an index that is in the ERROR step.
#
# @option arguments [String] :index The name of the indices (comma-separated) whose failed lifecycle step is to be retry
# @option arguments [Hash] :headers Custom HTTP headers
#
# @see https://www.elastic.co/guide/en/elasticsearch/reference/current/ilm-retry-policy.html
#
Retries executing the policy for an index that is in the ERROR step.
Retries executing the policy for an index that is in the ERROR step .
def retry(arguments = {})
          raise ArgumentError, "Required argument 'index' missing" unless arguments[:index]
          headers = arguments.delete(:headers) || {}
          body = nil
          arguments = arguments.clone
          _index = arguments.delete(:index)
          method = Elasticsearch::API::HTTP_POST
          path   = "#{Utils.__listify(_index)}/_ilm/retry"
          params = {}
          perform_request(method, path, params, body, headers).body
        end
def retry ( arguments = { } ) raise ArgumentError , "Required argument 'index' missing" unless arguments [ :index ] headers = arguments . delete ( :headers ) || { } body = nil arguments = arguments . clone _index = arguments . delete ( :index ) method = Elasticsearch :: API :: HTTP_POST path = "#{Utils.__listify(_index)}/_ilm/retry" params = { } perform_request ( method , path , params , body , headers ) . body end
Retries executing the policy for an index that is in the ERROR step.
Retries executing the policy for an index that is in the ERROR step .
arguments
:headers Custom HTTP headers
: headers Custom HTTP headers
see
None