slm-stop.asciidoc 1.4 KB

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