stop-transform.asciidoc 2.2 KB

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