slm-stop.asciidoc 1.4 KB

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