stop-transform.asciidoc 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. [role="xpack"]
  2. [[stop-transform]]
  3. = Stop {transforms} API
  4. [subs="attributes"]
  5. ++++
  6. <titleabbrev>Stop {transforms}</titleabbrev>
  7. ++++
  8. Stops one or more {transforms}.
  9. [[stop-transform-request]]
  10. == {api-request-title}
  11. `POST _transform/<transform_id>/_stop` +
  12. `POST _transform/<transform_id1>,<transform_id2>/_stop` +
  13. `POST _transform/_all/_stop`
  14. [[stop-transform-prereq]]
  15. == {api-prereq-title}
  16. Requires the `manage_transform` cluster privilege. This privilege is included
  17. in the `transform_admin` built-in role.
  18. [[stop-transform-path-parms]]
  19. == {api-path-parms-title}
  20. `<transform_id>`::
  21. (Required, string)
  22. Identifier for the transform. To stop multiple {transforms}, use a
  23. comma-separated list or a wildcard expression. To stop all {transforms}, use
  24. `_all` or `*` as the identifier.
  25. [[stop-transform-query-parms]]
  26. == {api-query-parms-title}
  27. `allow_no_match`::
  28. (Optional, Boolean)
  29. include::{es-repo-dir}/rest-api/common-parms.asciidoc[tag=allow-no-match-transforms2]
  30. `force`::
  31. (Optional, Boolean) Set to `true` to stop a failed {transform} or to
  32. forcefully stop a {transform} that did not respond to the initial stop
  33. request.
  34. `timeout`::
  35. (Optional, time value) If `wait_for_completion=true`, the API blocks for (at
  36. maximum) the specified duration while waiting for the {transform} to stop. If
  37. more than `timeout` time has passed, the API throws a timeout exception. Even
  38. if a timeout exception is thrown, the stop request is still processing and
  39. eventually moves the {transform} to `STOPPED`. The timeout simply means the API
  40. call itself timed out while waiting for the status change. Defaults to `30s`.
  41. `wait_for_checkpoint`::
  42. (Optional, Boolean) If set to `true`, the transform will not completely stop
  43. until the current checkpoint is completed. If set to `false`, the {transform}
  44. stops as soon as possible. Defaults to `false`.
  45. `wait_for_completion`::
  46. (Optional, Boolean) If set to `true`, causes the API to block until the indexer
  47. state completely stops. If set to `false`, the API returns immediately and the
  48. indexer will be stopped asynchronously in the background. Defaults to `false`.
  49. [[stop-transform-response-codes]]
  50. == {api-response-codes-title}
  51. `404` (Missing resources)::
  52. If `allow_no_match` is `false`, this code indicates that there are no
  53. resources that match the request or only partial matches for the request.
  54. [[stop-transform-example]]
  55. == {api-examples-title}
  56. [source,console]
  57. --------------------------------------------------
  58. POST _transform/ecommerce_transform/_stop
  59. --------------------------------------------------
  60. // TEST[skip:set up kibana samples]
  61. When the {transform} stops, you receive the following results:
  62. [source,console-result]
  63. ----
  64. {
  65. "acknowledged" : true
  66. }
  67. ----