execute_snapshot_lifecycle_policy.asciidoc 1.0 KB

123456789101112131415161718192021222324252627282930313233343536
  1. --
  2. :api: slm-execute-snapshot-lifecycle-policy
  3. :request: ExecuteSnapshotLifecyclePolicyRequest
  4. :response: ExecuteSnapshotLifecyclePolicyResponse
  5. --
  6. [role="xpack"]
  7. [id="{upid}-{api}"]
  8. === Execute Snapshot Lifecycle Policy API
  9. [id="{upid}-{api}-request"]
  10. ==== Request
  11. The Execute Snapshot Lifecycle Policy API allows you to execute a Snapshot Lifecycle Management
  12. Policy, taking a snapshot immediately.
  13. ["source","java",subs="attributes,callouts,macros"]
  14. --------------------------------------------------
  15. include-tagged::{doc-tests-file}[{api}-request]
  16. --------------------------------------------------
  17. <1> The policy id to execute
  18. [id="{upid}-{api}-response"]
  19. ==== Response
  20. The returned +{response}+ contains the name of the snapshot that was created.
  21. ["source","java",subs="attributes,callouts,macros"]
  22. --------------------------------------------------
  23. include-tagged::{doc-tests-file}[{api}-response]
  24. --------------------------------------------------
  25. <1> The created snapshot name
  26. include::../execution.asciidoc[]