1
0

stop-dfanalytics.asciidoc 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. [role="xpack"]
  2. [testenv="platinum"]
  3. [[stop-dfanalytics]]
  4. === Stop {dfanalytics-jobs} API
  5. [subs="attributes"]
  6. ++++
  7. <titleabbrev>Stop {dfanalytics-jobs}</titleabbrev>
  8. ++++
  9. Stops one or more {dfanalytics-jobs}.
  10. experimental[]
  11. [[ml-stop-dfanalytics-request]]
  12. ==== {api-request-title}
  13. `POST _ml/data_frame/analytics/<data_frame_analytics_id>/_stop` +
  14. `POST _ml/data_frame/analytics/<data_frame_analytics_id>,<data_frame_analytics_id>/_stop` +
  15. `POST _ml/data_frame/analytics/_all/_stop`
  16. [[ml-stop-dfanalytics-prereq]]
  17. ==== {api-prereq-title}
  18. If the {es} {security-features} are enabled, you must have the following
  19. built-in roles or equivalent privileges:
  20. * `machine_learning_admin`
  21. * `kibana_admin` (UI only)
  22. For more information, see <<security-privileges>> and <<built-in-roles>>.
  23. [[ml-stop-dfanalytics-desc]]
  24. ==== {api-description-title}
  25. A {dfanalytics-job} can be started and stopped multiple times throughout its
  26. lifecycle.
  27. You can stop multiple {dfanalytics-jobs} in a single API request by using a
  28. comma-separated list of {dfanalytics-jobs} or a wildcard expression. You can
  29. stop all {dfanalytics-job} by using _all or by specifying * as the
  30. <data_frame_analytics_id>.
  31. [[ml-stop-dfanalytics-path-params]]
  32. ==== {api-path-parms-title}
  33. `<data_frame_analytics_id>`::
  34. (Required, string)
  35. include::{docdir}/ml/ml-shared.asciidoc[tag=job-id-data-frame-analytics-define]
  36. [[ml-stop-dfanalytics-query-params]]
  37. ==== {api-query-parms-title}
  38. `allow_no_match`::
  39. (Optional, boolean)
  40. include::{docdir}/ml/ml-shared.asciidoc[tag=allow-no-match]
  41. `force`::
  42. (Optional, boolean) If true, the {dfanalytics-job} is stopped forcefully.
  43. `timeout`::
  44. (Optional, <<time-units,time units>>)
  45. include::{docdir}/ml/ml-shared.asciidoc[tag=timeout-stop]
  46. [[ml-stop-dfanalytics-example]]
  47. ==== {api-examples-title}
  48. The following example stops the `loganalytics` {dfanalytics-job}:
  49. [source,console]
  50. --------------------------------------------------
  51. POST _ml/data_frame/analytics/loganalytics/_stop
  52. --------------------------------------------------
  53. // TEST[skip:TBD]
  54. When the {dfanalytics-job} stops, you receive the following results:
  55. [source,console-result]
  56. ----
  57. {
  58. "stopped" : true
  59. }
  60. ----