Class MigrateToDataTiersRequest
java.lang.Object
co.elastic.clients.elasticsearch._types.RequestBase
co.elastic.clients.elasticsearch.ilm.MigrateToDataTiersRequest
- All Implemented Interfaces:
JsonpSerializable
@JsonpDeserializable
public class MigrateToDataTiersRequest
extends RequestBase
implements JsonpSerializable
Migrate to data tiers routing. Switch the indices, ILM policies, and legacy,
composable, and component templates from using custom node attributes and
attribute-based allocation filters to using data tiers. Optionally, delete
one legacy index template. Using node roles enables ILM to automatically move
the indices between data tiers.
Migrating away from custom node attributes routing can be manually performed. This API provides an automated way of performing three out of the four manual steps listed in the migration guide:
- Stop setting the custom hot attribute on new indices.
- Remove custom allocation settings from existing ILM policies.
- Replace custom allocation settings from existing indices with the corresponding tier preference.
ILM must be stopped before performing the migration. Use the stop ILM and get
ILM status APIs to wait until the reported operation mode is
STOPPED.
- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class co.elastic.clients.elasticsearch._types.RequestBase
RequestBase.AbstractBuilder<BuilderT extends RequestBase.AbstractBuilder<BuilderT>> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<MigrateToDataTiersRequest>Json deserializer forMigrateToDataTiersRequestEndpoint "ilm.migrate_to_data_tiers". -
Method Summary
Modifier and TypeMethodDescriptionfinal BooleandryRun()If true, simulates the migration from node attributes based allocation filters to data tiers, but does not perform the migration.final StringAPI name:legacy_template_to_deletefinal TimeThe period to wait for a connection to the master node.final StringAPI name:node_attributestatic MigrateToDataTiersRequestvoidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidsetupMigrateToDataTiersRequestDeserializer(ObjectDeserializer<MigrateToDataTiersRequest.Builder> op) Methods inherited from class co.elastic.clients.elasticsearch._types.RequestBase
toString
-
Field Details
-
_DESERIALIZER
Json deserializer forMigrateToDataTiersRequest -
_ENDPOINT
public static final Endpoint<MigrateToDataTiersRequest,MigrateToDataTiersResponse, _ENDPOINTErrorResponse> Endpoint "ilm.migrate_to_data_tiers".
-
-
Method Details
-
of
public static MigrateToDataTiersRequest of(Function<MigrateToDataTiersRequest.Builder, ObjectBuilder<MigrateToDataTiersRequest>> fn) -
dryRun
If true, simulates the migration from node attributes based allocation filters to data tiers, but does not perform the migration. This provides a way to retrieve the indices and ILM policies that need to be migrated.API name:
dry_run -
legacyTemplateToDelete
API name:legacy_template_to_delete -
masterTimeout
The period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error. It can also be set to-1to indicate that the request should never timeout.API name:
master_timeout -
nodeAttribute
API name:node_attribute -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
setupMigrateToDataTiersRequestDeserializer
protected static void setupMigrateToDataTiersRequestDeserializer(ObjectDeserializer<MigrateToDataTiersRequest.Builder> op)
-