1
0

start-dfanalytics.asciidoc 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  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)
  24. include::{docdir}/ml/ml-shared.asciidoc[tag=job-id-data-frame-analytics-define]
  25. [[ml-start-dfanalytics-query-params]]
  26. ==== {api-query-parms-title}
  27. `timeout`::
  28. (Optional, time) Controls the amount of time to wait until the
  29. {dfanalytics-job} starts. 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,console]
  34. --------------------------------------------------
  35. POST _ml/data_frame/analytics/loganalytics/_start
  36. --------------------------------------------------
  37. // TEST[skip:setup:logdata_job]
  38. When the {dfanalytics-job} starts, you receive the following results:
  39. [source,console-result]
  40. ----
  41. {
  42. "acknowledged" : true
  43. }
  44. ----