get_snapshot_lifecycle_stats.asciidoc 1.1 KB

1234567891011121314151617181920212223242526272829303132333435
  1. --
  2. :api: slm-get-snapshot-lifecycle-stats
  3. :request: GetSnapshotLifecycleStatsRequest
  4. :response: GetSnapshotLifecycleStatsResponse
  5. --
  6. [role="xpack"]
  7. [id="{upid}-{api}"]
  8. === Get Snapshot Lifecycle Stats API
  9. [id="{upid}-{api}-request"]
  10. ==== Request
  11. The Get Snapshot Lifecycle Stats API allows you to retrieve statistics about snapshots taken or
  12. deleted, as well as retention runs by the snapshot lifecycle service.
  13. ["source","java",subs="attributes,callouts,macros"]
  14. --------------------------------------------------
  15. include-tagged::{doc-tests-file}[{api}-request]
  16. --------------------------------------------------
  17. [id="{upid}-{api}-response"]
  18. ==== Response
  19. The returned +{response}+ contains global statistics as well as a map of `SnapshotPolicyStats`,
  20. accessible by the id of the policy, which contains statistics about each policy.
  21. ["source","java",subs="attributes,callouts,macros"]
  22. --------------------------------------------------
  23. include-tagged::{doc-tests-file}[{api}-response]
  24. --------------------------------------------------
  25. include::../execution.asciidoc[]