start-dfanalytics.asciidoc 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  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 <<security-privileges>> and <<built-in-roles>>.
  20. [[ml-start-dfanalytics-path-params]]
  21. ==== {api-path-parms-title}
  22. `<data_frame_analytics_id>`::
  23. (Required, string) Identifier for the {dfanalytics-job}. This identifier can
  24. contain lowercase alphanumeric characters (a-z and 0-9), hyphens, and
  25. underscores. It must start and end with alphanumeric characters.
  26. [[ml-start-dfanalytics-query-params]]
  27. ==== {api-query-parms-title}
  28. `timeout`::
  29. (Optional, time) Controls the amount of time to wait until the
  30. {dfanalytics-job} starts. The default value is 20 seconds.
  31. [[ml-start-dfanalytics-example]]
  32. ==== {api-examples-title}
  33. The following example starts the `loganalytics` {dfanalytics-job}:
  34. [source,console]
  35. --------------------------------------------------
  36. POST _ml/data_frame/analytics/loganalytics/_start
  37. --------------------------------------------------
  38. // TEST[skip:setup:logdata_job]
  39. When the {dfanalytics-job} starts, you receive the following results:
  40. [source,console-result]
  41. ----
  42. {
  43. "acknowledged" : true
  44. }
  45. ----