Struct elasticsearch::ilm::Ilm
source · pub struct Ilm<'a> { /* private fields */ }
Expand description
Namespace client for Index Lifecycle Management APIs
Implementations
sourceimpl<'a> Ilm<'a>
impl<'a> Ilm<'a>
pub fn transport(&self) -> &Transport
sourcepub fn delete_lifecycle<'b>(
&'a self,
parts: IlmDeleteLifecycleParts<'b>
) -> IlmDeleteLifecycle<'a, 'b>
pub fn delete_lifecycle<'b>(
&'a self,
parts: IlmDeleteLifecycleParts<'b>
) -> IlmDeleteLifecycle<'a, 'b>
Deletes the specified lifecycle policy definition. A currently used policy cannot be deleted.
sourcepub fn explain_lifecycle<'b>(
&'a self,
parts: IlmExplainLifecycleParts<'b>
) -> IlmExplainLifecycle<'a, 'b>
pub fn explain_lifecycle<'b>(
&'a self,
parts: IlmExplainLifecycleParts<'b>
) -> IlmExplainLifecycle<'a, 'b>
Retrieves information about the index’s current lifecycle state, such as the currently executing phase, action, and step.
sourcepub fn get_lifecycle<'b>(
&'a self,
parts: IlmGetLifecycleParts<'b>
) -> IlmGetLifecycle<'a, 'b>
pub fn get_lifecycle<'b>(
&'a self,
parts: IlmGetLifecycleParts<'b>
) -> IlmGetLifecycle<'a, 'b>
Returns the specified policy definition. Includes the policy version and last modified date.
sourcepub fn get_status<'b>(&'a self) -> IlmGetStatus<'a, 'b>
pub fn get_status<'b>(&'a self) -> IlmGetStatus<'a, 'b>
Retrieves the current index lifecycle management (ILM) status.
sourcepub fn migrate_to_data_tiers<'b>(&'a self) -> IlmMigrateToDataTiers<'a, 'b, ()>
pub fn migrate_to_data_tiers<'b>(&'a self) -> IlmMigrateToDataTiers<'a, 'b, ()>
Migrates the indices and ILM policies away from custom node attribute allocation routing to data tiers routing
sourcepub fn move_to_step<'b>(
&'a self,
parts: IlmMoveToStepParts<'b>
) -> IlmMoveToStep<'a, 'b, ()>
pub fn move_to_step<'b>(
&'a self,
parts: IlmMoveToStepParts<'b>
) -> IlmMoveToStep<'a, 'b, ()>
Manually moves an index into the specified step and executes that step.
sourcepub fn put_lifecycle<'b>(
&'a self,
parts: IlmPutLifecycleParts<'b>
) -> IlmPutLifecycle<'a, 'b, ()>
pub fn put_lifecycle<'b>(
&'a self,
parts: IlmPutLifecycleParts<'b>
) -> IlmPutLifecycle<'a, 'b, ()>
Creates a lifecycle policy
sourcepub fn remove_policy<'b>(
&'a self,
parts: IlmRemovePolicyParts<'b>
) -> IlmRemovePolicy<'a, 'b, ()>
pub fn remove_policy<'b>(
&'a self,
parts: IlmRemovePolicyParts<'b>
) -> IlmRemovePolicy<'a, 'b, ()>
Removes the assigned lifecycle policy and stops managing the specified index
sourcepub fn retry<'b>(&'a self, parts: IlmRetryParts<'b>) -> IlmRetry<'a, 'b, ()>
pub fn retry<'b>(&'a self, parts: IlmRetryParts<'b>) -> IlmRetry<'a, 'b, ()>
Retries executing the policy for an index that is in the ERROR step.
sourcepub fn start<'b>(&'a self) -> IlmStart<'a, 'b, ()>
pub fn start<'b>(&'a self) -> IlmStart<'a, 'b, ()>
Start the index lifecycle management (ILM) plugin.