stop-transform.asciidoc 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. [role="xpack"]
  2. [testenv="basic"]
  3. [[stop-data-frame-transform]]
  4. === Stop {dataframe-transforms} API
  5. ++++
  6. <titleabbrev>Stop {dataframe-transforms}</titleabbrev>
  7. ++++
  8. Stops one or more {dataframe-transforms}.
  9. ==== Request
  10. `POST _data_frame/transforms/<data_frame_transform_id>/_stop` +
  11. `POST _data_frame/transforms/<data_frame_transform_id1>,<data_frame_transform_id2>/_stop` +
  12. `POST _data_frame/transforms/_all/_stop`
  13. ==== Description
  14. You can stop multiple {dataframe-transforms} in a single API request by using a
  15. comma-separated list of {dataframe-transforms} or a wildcard expression.
  16. All {dataframe-transforms} can be stopped by using `_all` or `*` as the `<data_frame_transform_id>`.
  17. ==== Path Parameters
  18. `data_frame_transform_id` (required)::
  19. (string) Identifier for the {dataframe-transform}. This identifier can contain
  20. lowercase alphanumeric characters (a-z and 0-9), hyphens, and underscores. It
  21. must start and end with alphanumeric characters.
  22. ==== Query Parameters
  23. `wait_for_completion`::
  24. (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`.
  25. `timeout`::
  26. (time value) If `wait_for_completion=true`, the API blocks for (at maximum)
  27. the specified duration while waiting for the job to stop. If more than
  28. `timeout` time has passed, the API throws a timeout exception. Even if a
  29. timeout exception is thrown, the stop request is still processing and
  30. eventually moves the job to `STOPPED`. The timeout simply means the API call itself timed out while waiting for the status change. Defaults to `30s`
  31. //==== Request Body
  32. //==== Authorization
  33. ==== Examples
  34. The following example stops the `ecommerce_transform` {dataframe-transform}:
  35. [source,js]
  36. --------------------------------------------------
  37. POST _data_frame/transforms/ecommerce_transform/_stop
  38. --------------------------------------------------
  39. // CONSOLE
  40. // TEST[skip:set up kibana samples]
  41. When the {dataframe-transform} stops, you receive the following results:
  42. [source,js]
  43. ----
  44. {
  45. "stopped" : true
  46. }
  47. ----
  48. // TESTRESPONSE