explain_lifecycle.asciidoc 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. --
  2. :api: ilm-explain-lifecycle
  3. :request: ExplainLifecycleRequest
  4. :response: ExplainLifecycleResponse
  5. --
  6. [id="{upid}-{api}"]
  7. === Explain Lifecycle API
  8. [id="{upid}-{api}-request"]
  9. ==== Request
  10. The Explain Lifecycle API allows you to retrieve information about the execution
  11. of a Lifecycle Policy with respect to one or more indices.
  12. ["source","java",subs="attributes,callouts,macros"]
  13. --------------------------------------------------
  14. include-tagged::{doc-tests-file}[{api}-request]
  15. --------------------------------------------------
  16. <1> Requests an explanation of policy execution for `my_index` and `other_index`
  17. [id="{upid}-{api}-response"]
  18. ==== Response
  19. The returned +{response}+ contains a map of `LifecyclePolicyMetadata`,
  20. accessible by the name of the policy, which contains data about each policy,
  21. as well as the policy definition.
  22. ["source","java",subs="attributes,callouts,macros"]
  23. --------------------------------------------------
  24. include-tagged::{doc-tests-file}[{api}-response]
  25. --------------------------------------------------
  26. <1> The name of the policy in use for this index, if any. Will be `null` if the
  27. index does not have an associated policy.
  28. <2> Indicates whether this index is being managed by Index Lifecycle Management.
  29. <3> The Phase (`hot`, `warm`, etc.) this index is currently in. Will be `null` if
  30. the index is not managed by Index Lifecycle Management.
  31. <4> The time this index entered this Phase of execution.
  32. <5> The Action (`rollover`, `shrink`, etc.) this index is currently in. Will be `null` if
  33. the index is not managed by Index Lifecycle Management.
  34. <6> The Step this index is currently in. Will be `null` if
  35. the index is not managed by Index Lifecycle Management.
  36. <7> If this index is in the `ERROR` Step, this will indicate which Step failed.
  37. Otherwise, it will be `null`.
  38. include::../execution.asciidoc[]