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 classes/interfaces inherited from class co.elastic.clients.elasticsearch._types.RequestBase
RequestBase.AbstractBuilder<BuilderT extends RequestBase.AbstractBuilder<BuilderT>>
-
Field Summary
Modifier and TypeFieldDescriptionstatic final JsonpDeserializer<MigrateToDataTiersRequest>
Json deserializer forMigrateToDataTiersRequest
Endpoint "ilm.migrate_to_data_tiers
". -
Method Summary
Modifier and TypeMethodDescriptionfinal Boolean
dryRun()
If true, simulates the migration from node attributes based allocation filters to data tiers, but does not perform the migration.final String
API name:legacy_template_to_delete
final String
API name:node_attribute
static MigrateToDataTiersRequest
void
serialize
(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected void
serializeInternal
(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static void
setupMigrateToDataTiersRequestDeserializer
(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:
serialize
in interfaceJsonpSerializable
-
serializeInternal
-
setupMigrateToDataTiersRequestDeserializer
protected static void setupMigrateToDataTiersRequestDeserializer(ObjectDeserializer<MigrateToDataTiersRequest.Builder> op)
-