start-transform.asciidoc 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. [role="xpack"]
  2. [testenv="basic"]
  3. [[start-data-frame-transform]]
  4. === Start {dataframe-transforms} API
  5. [subs="attributes"]
  6. ++++
  7. <titleabbrev>Start {dataframe-transforms}</titleabbrev>
  8. ++++
  9. Starts one or more {dataframe-transforms}.
  10. beta[]
  11. [[start-data-frame-transform-request]]
  12. ==== {api-request-title}
  13. `POST _data_frame/transforms/<data_frame_transform_id>/_start`
  14. [[start-data-frame-transform-prereqs]]
  15. ==== {api-prereq-title}
  16. * If the {es} {security-features} are enabled, you must have
  17. `manage_data_frame_transforms` cluster privileges to use this API. You must also
  18. have `view_index_metadata` privileges on the source index for the
  19. {dataframe-transform}. For more information, see
  20. {stack-ov}/security-privileges.html[Security privileges] and
  21. {stack-ov}/built-in-roles.html[Built-in roles].
  22. [[start-data-frame-transform-desc]]
  23. ==== {api-description-title}
  24. When you start a {dataframe-transform}, it creates the destination index if it
  25. does not already exist. The `number_of_shards` is set to `1` and the
  26. `auto_expand_replicas` is set to `0-1`.
  27. The transform deduces the mapping definitions from the source indices. For
  28. scripted fields, it uses <<dynamic-mapping,dynamic mappings>>. If a field in the
  29. destination index is created by `scripted_metric` or `bucket_script`
  30. aggregations, the transform uses dynamic mappings unless a template exists or
  31. the destination index already exists. Mapping definitions in the destination
  32. index take precedence over dynamic mappings and templates.
  33. When the {dataframe-transform} starts, a series of validations occur to ensure
  34. its success. If you deferred validation when you created the
  35. {dataframe-transform}, they occur when you start the transform--with the
  36. exception of privilege checks. When {es} {security-features} are enabled, the
  37. {dataframe-transform} remembers which roles the user that created it had at the
  38. time of creation and uses those same roles. If those roles do not have the
  39. required privileges on the source and destination indices, the
  40. {dataframe-transform} fails when it attempts unauthorized operations.
  41. [[start-data-frame-transform-path-parms]]
  42. ==== {api-path-parms-title}
  43. `<data_frame_transform_id>`::
  44. (Required, string) Identifier for the {dataframe-transform}. This identifier
  45. can contain lowercase alphanumeric characters (a-z and 0-9), hyphens, and
  46. underscores. It must start and end with alphanumeric characters.
  47. [[start-data-frame-transform-example]]
  48. ==== {api-examples-title}
  49. [source,js]
  50. --------------------------------------------------
  51. POST _data_frame/transforms/ecommerce_transform/_start
  52. --------------------------------------------------
  53. // CONSOLE
  54. // TEST[skip:set up kibana samples]
  55. When the {dataframe-transform} starts, you receive the following results:
  56. [source,console-result]
  57. ----
  58. {
  59. "acknowledged" : true
  60. }
  61. ----