start-dfanalytics.asciidoc 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. [role="xpack"]
  2. [testenv="platinum"]
  3. [[start-dfanalytics]]
  4. === Start {dfanalytics-jobs} API
  5. [subs="attributes"]
  6. ++++
  7. <titleabbrev>Start {dfanalytics-jobs}</titleabbrev>
  8. ++++
  9. Starts a {dfanalytics-job}.
  10. experimental[]
  11. [[ml-start-dfanalytics-request]]
  12. ==== {api-request-title}
  13. `POST _ml/data_frame/analytics/<data_frame_analytics_id>/_start`
  14. [[ml-start-dfanalytics-prereq]]
  15. ==== {api-prereq-title}
  16. * You must have `machine_learning_admin` built-in role to use this API. You must
  17. also have `read` and `view_index_metadata` privileges on the source index and
  18. `read`, `create_index`, and `index` privileges on the destination index. For
  19. more information, see {stack-ov}/security-privileges.html[Security privileges]
  20. and {stack-ov}/built-in-roles.html[Built-in roles].
  21. [[ml-start-dfanalytics-path-params]]
  22. ==== {api-path-parms-title}
  23. `<data_frame_analytics_id>`::
  24. (Required, string) Identifier for the {dfanalytics-job}. This identifier can
  25. contain lowercase alphanumeric characters (a-z and 0-9), hyphens, and
  26. underscores. It must start and end with alphanumeric characters.
  27. [[ml-start-dfanalytics-query-params]]
  28. ==== {api-query-parms-title}
  29. `timeout`::
  30. (Optional, time) Controls the amount of time to wait until the
  31. {dfanalytics-job} starts. The default value is 20 seconds.
  32. [[ml-start-dfanalytics-example]]
  33. ==== {api-examples-title}
  34. The following example starts the `loganalytics` {dfanalytics-job}:
  35. [source,js]
  36. --------------------------------------------------
  37. POST _ml/data_frame/analytics/loganalytics/_start
  38. --------------------------------------------------
  39. // CONSOLE
  40. // TEST[skip:setup:logdata_job]
  41. When the {dfanalytics-job} starts, you receive the following results:
  42. [source,js]
  43. ----
  44. {
  45. "acknowledged" : true
  46. }
  47. ----
  48. // TESTRESPONSE