stop-transform.asciidoc 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  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. ==== Request
  12. `POST _data_frame/transforms/<data_frame_transform_id>/_stop` +
  13. `POST _data_frame/transforms/<data_frame_transform_id1>,<data_frame_transform_id2>/_stop` +
  14. `POST _data_frame/transforms/_all/_stop`
  15. ==== Description
  16. You can stop multiple {dataframe-transforms} in a single API request by using a
  17. comma-separated list of {dataframe-transforms} or a wildcard expression.
  18. All {dataframe-transforms} can be stopped by using `_all` or `*` as the `<data_frame_transform_id>`.
  19. ==== Path Parameters
  20. `data_frame_transform_id` (required)::
  21. (string) Identifier for the {dataframe-transform}. This identifier can contain
  22. lowercase alphanumeric characters (a-z and 0-9), hyphens, and underscores. It
  23. must start and end with alphanumeric characters.
  24. ==== Query Parameters
  25. `wait_for_completion`::
  26. (boolean) If set to true, causes the API to block until the indexer state completely stops. If set to false, the API returns immediately and the indexer will be stopped asynchronously in the background. Defaults to `false`.
  27. `timeout`::
  28. (time value) If `wait_for_completion=true`, the API blocks for (at maximum)
  29. the specified duration while waiting for the transform to stop. If more than
  30. `timeout` time has passed, the API throws a timeout exception. Even if a
  31. timeout exception is thrown, the stop request is still processing and
  32. eventually moves the transform to `STOPPED`. The timeout simply means the API
  33. call itself timed out while waiting for the status change. Defaults to `30s`
  34. //==== Request Body
  35. ==== Authorization
  36. If the {es} {security-features} are enabled, you must have
  37. `manage_data_frame_transforms` cluster privileges to use this API. The built-in
  38. `data_frame_transforms_admin` role has these privileges. For more information,
  39. see {stack-ov}/security-privileges.html[Security privileges] and
  40. {stack-ov}/built-in-roles.html[Built-in roles].
  41. ==== Examples
  42. The following example stops the `ecommerce_transform` {dataframe-transform}:
  43. [source,js]
  44. --------------------------------------------------
  45. POST _data_frame/transforms/ecommerce_transform/_stop
  46. --------------------------------------------------
  47. // CONSOLE
  48. // TEST[skip:set up kibana samples]
  49. When the {dataframe-transform} stops, you receive the following results:
  50. [source,js]
  51. ----
  52. {
  53. "acknowledged" : true
  54. }
  55. ----
  56. // TESTRESPONSE