elasticsearch/docs/reference/ilm
Lee Hinman 3d5843a236
Allow ILM move-to-step without `action` or `name` (#75435)
* Allow ILM move-to-step without `action` or `name`

This commit enhances ILM's move-to-step API to allow dropping the `name`, or dropping both the
`action` and `name`. For example:

```json
POST /_ilm/move/foo-1
{
  "current_step": {
    "phase": "hot",
    "action": "rollover",
    "name": "check-rollover-ready"
  },
  "next_step": {
    "phase": "warm",
    "action": "forcemerge"
  }
}
```

Will move to the first step in the `forcemerge` action in the `warm` phase (without having to know
the specific step name).

Another example:

```json
POST /_ilm/move/foo-1
{
  "current_step": {
    "phase": "hot",
    "action": "rollover",
    "name": "check-rollover-ready"
  },
  "next_step": {
    "phase": "warm"
  }
}
```

Will move to the first step in the `warm` phase (without having to know the specific action name).

Bear in mind that the execution order is still entirely an implementation detail, so "first" in the
above sentences means the first step that ILM would execute.

Resolves #58128

* Apply Andrei's wording change (thanks!)

Co-authored-by: Andrei Dan <andrei.dan@elastic.co>

* Log index and policy name when the concrete step key can't be resolved

Co-authored-by: Andrei Dan <andrei.dan@elastic.co>
2021-07-19 12:10:25 -04:00
..
actions [DOCS] Note ILM `searchable_snapshot` action requires data tiers (#74706) 2021-06-30 11:03:11 -04:00
apis Allow ILM move-to-step without `action` or `name` (#75435) 2021-07-19 12:10:25 -04:00
error-handling.asciidoc
example-index-lifecycle-policy.asciidoc [DOCS] Move ES glossary to Stack docs (#74579) 2021-06-24 19:04:31 -04:00
ilm-actions.asciidoc
ilm-and-snapshots.asciidoc
ilm-concepts.asciidoc
ilm-index-lifecycle.asciidoc
ilm-overview.asciidoc [DOCS] Move ES glossary to Stack docs (#74579) 2021-06-24 19:04:31 -04:00
ilm-skip-rollover.asciidoc
ilm-tutorial.asciidoc
ilm-with-existing-indices.asciidoc
index-rollover.asciidoc
index.asciidoc
set-up-lifecycle-policy.asciidoc [DOCS] Document how to switch ILM policies (#73967) 2021-06-28 10:32:01 -04:00
start-stop.asciidoc
update-lifecycle-policy.asciidoc