stop-transform.asciidoc 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. [role="xpack"]
  2. [testenv="basic"]
  3. [[stop-data-frame-transform]]
  4. === Stop {dataframe-transforms} API
  5. [subs="attributes"]
  6. ++++
  7. <titleabbrev>Stop {dataframe-transforms}</titleabbrev>
  8. ++++
  9. beta[]
  10. Stops one or more {dataframe-transforms}.
  11. [discrete]
  12. [[stop-data-frame-transform-request]]
  13. ==== {api-request-title}
  14. `POST _data_frame/transforms/<data_frame_transform_id>/_stop` +
  15. `POST _data_frame/transforms/<data_frame_transform_id1>,<data_frame_transform_id2>/_stop` +
  16. `POST _data_frame/transforms/_all/_stop`
  17. [discrete]
  18. [[stop-data-frame-transform-prereq]]
  19. ==== {api-prereq-title}
  20. If the {es} {security-features} are enabled, you must have
  21. `manage_data_frame_transforms` cluster privileges to use this API. The built-in
  22. `data_frame_transforms_admin` role has these privileges. For more information,
  23. see {stack-ov}/security-privileges.html[Security privileges] and
  24. {stack-ov}/built-in-roles.html[Built-in roles].
  25. [discrete]
  26. [[stop-data-frame-transform-desc]]
  27. ==== {api-description-title}
  28. You can stop multiple {dataframe-transforms} in a single API request by using a
  29. comma-separated list of {dataframe-transforms} or a wildcard expression.
  30. All {dataframe-transforms} can be stopped by using `_all` or `*` as the
  31. `<data_frame_transform_id>`.
  32. [discrete]
  33. [[stop-data-frame-transform-path-parms]]
  34. ==== {api-path-parms-title}
  35. `<data_frame_transform_id>` (Required)::
  36. (string) Identifier for the {dataframe-transform}. This identifier can contain
  37. lowercase alphanumeric characters (a-z and 0-9), hyphens, and underscores. It
  38. must start and end with alphanumeric characters.
  39. [discrete]
  40. [[stop-data-frame-transform-query-parms]]
  41. ==== {api-query-parms-title}
  42. `allow_no_match` (Optional)::
  43. (boolean) Whether to ignore if a wildcard expression matches no
  44. {dataframe-transforms}. This includes `_all` string or when no transforms have
  45. been specified. The default is `true`.
  46. `timeout` (Optional)::
  47. (time value) If `wait_for_completion=true`, the API blocks for (at maximum)
  48. the specified duration while waiting for the transform to stop. If more than
  49. `timeout` time has passed, the API throws a timeout exception. Even if a
  50. timeout exception is thrown, the stop request is still processing and
  51. eventually moves the transform to `STOPPED`. The timeout simply means the API
  52. call itself timed out while waiting for the status change. Defaults to `30s`
  53. `wait_for_completion` (Optional)::
  54. (boolean) If set to `true`, causes the API to block until the indexer state
  55. completely stops. If set to `false`, the API returns immediately and the
  56. indexer will be stopped asynchronously in the background. Defaults to `false`.
  57. [discrete]
  58. [[stop-data-frame-transform-example]]
  59. ==== {api-example-title}
  60. [source,js]
  61. --------------------------------------------------
  62. POST _data_frame/transforms/ecommerce_transform/_stop
  63. --------------------------------------------------
  64. // CONSOLE
  65. // TEST[skip:set up kibana samples]
  66. When the {dataframe-transform} stops, you receive the following results:
  67. [source,js]
  68. ----
  69. {
  70. "acknowledged" : true
  71. }
  72. ----
  73. // TESTRESPONSE