elasticsearch-api/lib/elasticsearch/api/actions/index_lifecycle_management/migrate_to_data_tiers.rb
# Migrates the indices and ILM policies away from custom node attribute allocation routing to data tiers routing
#
# @option arguments [Boolean] :dry_run If set to true it will simulate the migration, providing a way to retrieve the ILM policies and indices that need to be migrated. The default is false
# @option arguments [Hash] :headers Custom HTTP headers
# @option arguments [Hash] :body Optionally specify a legacy index template name to delete and optionally specify a node attribute name used for index shard routing (defaults to "data")
#
# @see https://www.elastic.co/guide/en/elasticsearch/reference/current/ilm-migrate-to-data-tiers.html
#
Migrates the indices and ILM policies away from custom node attribute allocation routing to data tiers routing
Migrates the indices and ILM policies away from custom node attribute allocation routing to data tiers routing
def migrate_to_data_tiers(arguments = {})
          headers = arguments.delete(:headers) || {}
          body = arguments.delete(:body)
          arguments = arguments.clone
          method = Elasticsearch::API::HTTP_POST
          path   = "_ilm/migrate_to_data_tiers"
          params = Utils.process_params(arguments)
          perform_request(method, path, params, body, headers).body
        end
def migrate_to_data_tiers ( arguments = { } ) headers = arguments . delete ( :headers ) || { } body = arguments . delete ( :body ) arguments = arguments . clone method = Elasticsearch :: API :: HTTP_POST path = "_ilm/migrate_to_data_tiers" params = Utils . process_params ( arguments ) perform_request ( method , path , params , body , headers ) . body end
Migrates the indices and ILM policies away from custom node attribute allocation routing to data tiers routing
Migrates the indices and ILM policies away from custom node attribute allocation routing to data tiers routing
arguments
:body Optionally specify a legacy index template name to delete and optionally specify a node attribute name used for index shard routing (defaults to "data")
: body Optionally specify a legacy index template name to delete and optionally specify a node attribute name used for index shard routing ( defaults to " data " )
"data")
see
None