Skip to content

Commit e2469aa

Browse files
committed
[DOCS] Edit ILM operation summaries
1 parent f65ad48 commit e2469aa

File tree

13 files changed

+68
-8
lines changed

13 files changed

+68
-8
lines changed

specification/_doc_ids/table.csv

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,7 @@ ilm-delete-lifecycle,https://www.elastic.co/guide/en/elasticsearch/reference/{br
197197
ilm-explain-lifecycle,https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/ilm-explain-lifecycle.html
198198
ilm-get-lifecycle,https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/ilm-get-lifecycle.html
199199
ilm-get-status,https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/ilm-get-status.html
200+
ilm-index-lifecycle,https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/ilm-index-lifecycle.html
200201
ilm-migrate-to-data-tiers,https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/ilm-migrate-to-data-tiers.html
201202
ilm-move-to-step,https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/ilm-move-to-step.html
202203
ilm-put-lifecycle,https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/ilm-put-lifecycle.html
@@ -271,6 +272,7 @@ mapping-source-field,https://www.elastic.co/guide/en/elasticsearch/reference/{br
271272
mapping,https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/mapping.html
272273
mapping,https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/mapping.html
273274
mean-reciprocal,https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/search-rank-eval.html#_mean_reciprocal_rank
275+
migrate-index-allocation-filters,https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/migrate-index-allocation-filters.html
274276
migration-api-deprecation,https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/migration-api-deprecation.html
275277
migration-api-feature-upgrade,https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/migration-api-feature-upgrade.html
276278
ml-apis,https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/ml-apis.html

specification/ilm/delete_lifecycle/DeleteLifecycleRequest.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ import { Name } from '@_types/common'
2222
import { Duration } from '@_types/Time'
2323

2424
/**
25-
* Deletes the specified lifecycle policy definition. You cannot delete policies that are currently in use. If the policy is being used to manage any indices, the request fails and returns an error.
26-
*
25+
* Deletes a lifecycle policy.
26+
* You cannot delete policies that are currently in use. If the policy is being used to manage any indices, the request fails and returns an error.
2727
* @rest_spec_name ilm.delete_lifecycle
2828
* @availability stack since=6.6.0 stability=stable
2929
* @cluster_privileges manage_ilm

specification/ilm/explain_lifecycle/ExplainLifecycleRequest.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,11 @@ import { IndexName } from '@_types/common'
2222
import { Duration } from '@_types/Time'
2323

2424
/**
25-
* Retrieves information about the index’s current lifecycle state, such as the currently executing phase, action, and step. Shows when the index entered each one, the definition of the running phase, and information about any failures.
25+
* Explain the lifecycle state.
26+
* Get the current lifecycle status for one or more indices.
27+
* For data streams, the API retrieves the current lifecycle status for the stream's backing indices.
28+
*
29+
* The response indicates when the index entered each lifecycle state, provides the definition of the running phase, and information about any failures.
2630
* @rest_spec_name ilm.explain_lifecycle
2731
* @availability stack since=6.6.0 stability=stable
2832
* @index_privileges view_index_metadata,manage_ilm

specification/ilm/get_lifecycle/GetLifecycleRequest.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import { Name } from '@_types/common'
2222
import { Duration } from '@_types/Time'
2323

2424
/**
25-
* Retrieves a lifecycle policy.
25+
* Get lifecycle policies.
2626
* @rest_spec_name ilm.get_lifecycle
2727
* @availability stack since=6.6.0 stability=stable
2828
* @cluster_privileges manage_ilm, read_ilm

specification/ilm/get_status/GetIlmStatusRequest.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,10 @@
2020
import { RequestBase } from '@_types/Base'
2121

2222
/**
23+
* Get the index lifecycle management status.
24+
* Get the current ILM status.
2325
* @rest_spec_name ilm.get_status
2426
* @availability stack since=6.6.0 stability=stable
27+
* @cluster_privileges read_ilm
2528
*/
2629
export interface Request extends RequestBase {}

specification/ilm/migrate_to_data_tiers/Request.ts

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,23 @@
2020
import { RequestBase } from '@_types/Base'
2121

2222
/**
23-
* Switches the indices, ILM policies, and legacy, composable and component templates from using custom node attributes and
24-
* attribute-based allocation filters to using data tiers, and optionally deletes one legacy index template.+
23+
* Migrate to data tiers routing.
24+
* Switch the indices, ILM policies, and legacy, composable, and component templates from using custom node attributes and attribute-based allocation filters to using data tiers.
25+
* Optionally, delete one legacy index template.
2526
* Using node roles enables ILM to automatically move the indices between data tiers.
2627
*
28+
* Migrating away from custom node attributes routing can be manually performed.
29+
* This API provides an automated way of performing three out of the four manual steps listed in the migration guide:
30+
*
31+
* 1. Stop setting the custom hot attribute on new indices.
32+
* 1. Remove custom allocation settings from existing ILM policies.
33+
* 1. Replace custom allocation settings from existing indices with the corresponding tier preference.
34+
*
35+
* ILM must be stopped before performing the migration.
36+
* Use the stop ILM and get ILM status APIs to wait until the reported operation mode is `STOPPED`.
2737
* @rest_spec_name ilm.migrate_to_data_tiers
2838
* @availability stack since=7.14.0 stability=stable
39+
* @ext_doc_id migrate-index-allocation-filters
2940
*/
3041
export interface Request extends RequestBase {
3142
query_parameters: {

specification/ilm/move_to_step/MoveToStepRequest.ts

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,23 @@ import { IndexName } from '@_types/common'
2222
import { StepKey } from './types'
2323

2424
/**
25+
* Move to a lifecycle step.
26+
* Manually move an index into a specific step in the lifecycle policy and run that step.
27+
*
28+
* 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.
29+
*
30+
* You must specify both the current step and the step to be executed in the body of the request.
31+
* The request will fail if the current step does not match the step currently running for the index
32+
* This is to prevent the index from being moved from an unexpected step into the next step.
33+
*
34+
* 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.
35+
* If only the phase is specified, the index will move to the first step of the first action in the target phase.
36+
* If the phase and action are specified, the index will move to the first step of the specified action in the specified phase.
37+
* Only actions specified in the ILM policy are considered valid.
38+
* An index cannot move to a step that is not part of its policy.
2539
* @rest_spec_name ilm.move_to_step
2640
* @availability stack since=6.6.0 stability=stable
41+
* @index_privileges manage_ilm
2742
*/
2843
export interface Request extends RequestBase {
2944
path_parts: {

specification/ilm/put_lifecycle/PutLifecycleRequest.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,15 @@ import { Name } from '@_types/common'
2323
import { Duration } from '@_types/Time'
2424

2525
/**
26-
* Creates a lifecycle policy. If the specified policy exists, the policy is replaced and the policy version is incremented.
26+
* Create or update a lifecycle policy.
27+
* If the specified policy exists, it is replaced and the policy version is incremented.
28+
*
29+
* NOTE: Only the latest version of the policy is stored, you cannot revert to previous versions.
2730
* @rest_spec_name ilm.put_lifecycle
2831
* @availability stack since=6.6.0 stability=stable
2932
* @cluster_privileges manage_ilm
3033
* @index_privileges manage
34+
* @ext_doc_id ilm-index-lifecycle
3135
*/
3236
export interface Request extends RequestBase {
3337
path_parts: {

specification/ilm/remove_policy/RemovePolicyRequest.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,12 @@ import { RequestBase } from '@_types/Base'
2121
import { IndexName } from '@_types/common'
2222

2323
/**
24+
* Remove policies from an index.
25+
* Remove the assigned lifecycle policies from an index or a data stream's backing indices.
26+
* It also stops managing the indices.
2427
* @rest_spec_name ilm.remove_policy
2528
* @availability stack since=6.6.0 stability=stable
29+
* @index_privileges manage_ilm
2630
*/
2731
export interface Request extends RequestBase {
2832
path_parts: {

specification/ilm/retry/RetryIlmRequest.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,13 @@ import { RequestBase } from '@_types/Base'
2121
import { IndexName } from '@_types/common'
2222

2323
/**
24+
* Retry a policy.
25+
* Retry running the lifecycle policy for an index that is in the ERROR step.
26+
* The API sets the policy back to the step where the error occurred and runs the step.
27+
* Use the explain lifecycle state API to determine whether an index is in the ERROR step.
2428
* @rest_spec_name ilm.retry
2529
* @availability stack since=6.6.0 stability=stable
30+
* @index_privileges manage_ilm
2631
*/
2732
export interface Request extends RequestBase {
2833
path_parts: {

0 commit comments

Comments
 (0)