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