elasticsearch/docs/reference/ilm/apis
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
..
delete-lifecycle.asciidoc
explain.asciidoc
get-lifecycle.asciidoc Add usage to get ILM policy response (#74518) 2021-06-23 16:01:19 -06:00
get-status.asciidoc [DOCS] Fix `operation_mode` response property def (#73976) 2021-06-10 13:31:15 -04:00
ilm-api.asciidoc Add migrate to data tiers API (#74264) 2021-06-28 12:07:39 +01:00
migrate-to-data-tiers.asciidoc Add `dry_run` support to the migrate to data tiers API (#74639) 2021-06-29 10:37:16 +01:00
move-to-step.asciidoc Allow ILM move-to-step without `action` or `name` (#75435) 2021-07-19 12:10:25 -04:00
put-lifecycle.asciidoc Add _meta field to ilm policy (#73515) 2021-06-01 11:17:53 -06:00
remove-policy-from-index.asciidoc
retry-policy.asciidoc
start.asciidoc
stop.asciidoc