Class MoveToStepRequest
- All Implemented Interfaces:
JsonpSerializable
WARNING: This operation can result in the loss of data. Manually moving an index into a specific step runs that step even if it has already been performed. This is a potentially destructive action and this should be considered an expert level API.
You must specify both the current step and the step to be executed in the body of the request. The request will fail if the current step does not match the step currently running for the index This is to prevent the index from being moved from an unexpected step into the next step.
When specifying the target (next_step
) to which the index will
be moved, either the name or both the action and name fields are optional. If
only the phase is specified, the index will move to the first step of the
first action in the target phase. If the phase and action are specified, the
index will move to the first step of the specified action in the specified
phase. Only actions specified in the ILM policy are considered valid. An
index cannot move to a step that is not part of its policy.
- 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<MoveToStepRequest>
Json deserializer forMoveToStepRequest
static final Endpoint<MoveToStepRequest,
MoveToStepResponse, ErrorResponse> Endpoint "ilm.move_to_step
". -
Method Summary
Modifier and TypeMethodDescriptionfinal StepKey
Required - The step that the index is expected to be in.final String
index()
Required - The name of the index whose lifecycle step is to changefinal StepKey
nextStep()
Required - The step that you want to run.static MoveToStepRequest
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
Methods inherited from class co.elastic.clients.elasticsearch._types.RequestBase
toString
-
Field Details
-
_DESERIALIZER
Json deserializer forMoveToStepRequest
-
_ENDPOINT
Endpoint "ilm.move_to_step
".
-
-
Method Details
-
of
public static MoveToStepRequest of(Function<MoveToStepRequest.Builder, ObjectBuilder<MoveToStepRequest>> fn) -
currentStep
Required - The step that the index is expected to be in.API name:
current_step
-
index
Required - The name of the index whose lifecycle step is to changeAPI name:
index
-
nextStep
Required - The step that you want to run.API name:
next_step
-
serialize
Serialize this object to JSON.- Specified by:
serialize
in interfaceJsonpSerializable
-
serializeInternal
-
setupMoveToStepRequestDeserializer
protected static void setupMoveToStepRequestDeserializer(ObjectDeserializer<MoveToStepRequest.Builder> op)
-