slm-stop.asciidoc 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. [[slm-api-stop]]
  2. === Stop {slm} API
  3. [subs="attributes"]
  4. ++++
  5. <titleabbrev>Stop {slm}</titleabbrev>
  6. ++++
  7. Turn off {slm} ({slm-init}).
  8. [[slm-api-stop-request]]
  9. ==== {api-request-title}
  10. `POST /_slm/stop`
  11. [[slm-api-stop-prereqs]]
  12. ==== {api-prereq-title}
  13. If the {es} {security-features} are enabled, you must have the `manage_slm`
  14. cluster privilege to use this API. For more information, see
  15. <<security-privileges>>.
  16. [[slm-api-stop-desc]]
  17. ==== {api-description-title}
  18. Halts all {slm} ({slm-init}) operations and stops the {slm-init} plugin.
  19. This is useful when you are performing maintenance on a cluster and need to
  20. prevent {slm-init} from performing any actions on your indices.
  21. Stopping {slm-init} does not stop any snapshots that are in progress.
  22. You can manually trigger snapshots with the <<slm-api-execute-lifecycle>> even if {slm-init} is stopped.
  23. The API returns a response as soon as the request is acknowledged, but
  24. the plugin might continue to run until in-progress operations complete and it can be safely stopped.
  25. This conversation was marked as resolved by debadair
  26. Use the <<slm-api-get-status>> to see if {slm-init} is running.
  27. ==== {api-query-parms-title}
  28. include::{docdir}/rest-api/common-parms.asciidoc[tag=timeoutparms]
  29. [[slm-api-stop-example]]
  30. ==== {api-examples-title}
  31. [source,console]
  32. --------------------------------------------------
  33. POST _slm/stop
  34. --------------------------------------------------