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
Switches the indices, ILM policies, and legacy, composable and component
templates from using custom node attributes and attribute-based allocation
filters to using data tiers, and optionally deletes one legacy index
template.+ Using node roles enables ILM to automatically move the indices
between data tiers.
- 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 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 -
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)
-