explain_lifecycle.asciidoc 1.8 KB

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