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 SummaryNested ClassesNested classes/interfaces inherited from class co.elastic.clients.elasticsearch._types.RequestBaseRequestBase.AbstractBuilder<BuilderT extends RequestBase.AbstractBuilder<BuilderT>>
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<MoveToStepRequest>Json deserializer forMoveToStepRequeststatic final Endpoint<MoveToStepRequest,MoveToStepResponse, ErrorResponse> Endpoint "ilm.move_to_step".
- 
Method SummaryModifier and TypeMethodDescriptionfinal StepKeyRequired - The step that the index is expected to be in.final Stringindex()Required - The name of the index whose lifecycle step is to changefinal StepKeynextStep()Required - The step that you want to run.static MoveToStepRequestvoidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidMethods inherited from class co.elastic.clients.elasticsearch._types.RequestBasetoString
- 
Field Details- 
_DESERIALIZERJson deserializer forMoveToStepRequest
- 
_ENDPOINTEndpoint "ilm.move_to_step".
 
- 
- 
Method Details- 
ofpublic static MoveToStepRequest of(Function<MoveToStepRequest.Builder, ObjectBuilder<MoveToStepRequest>> fn) 
- 
currentStepRequired - The step that the index is expected to be in.API name: current_step
- 
indexRequired - The name of the index whose lifecycle step is to changeAPI name: index
- 
nextStepRequired - The step that you want to run.API name: next_step
- 
serializeSerialize this object to JSON.- Specified by:
- serializein interface- JsonpSerializable
 
- 
serializeInternal
- 
setupMoveToStepRequestDeserializerprotected static void setupMoveToStepRequestDeserializer(ObjectDeserializer<MoveToStepRequest.Builder> op) 
 
-