stop-transform.asciidoc 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  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-desc]]
  19. == {api-description-title}
  20. You can stop multiple {transforms} in a single API request by using a
  21. comma-separated list of {transforms} or a wildcard expression.
  22. All {transforms} can be stopped by using `_all` or `*` as the
  23. `<transform_id>`.
  24. [[stop-transform-path-parms]]
  25. == {api-path-parms-title}
  26. `<transform_id>`::
  27. (Required, string)
  28. include::{es-repo-dir}/rest-api/common-parms.asciidoc[tag=transform-id]
  29. [[stop-transform-query-parms]]
  30. == {api-query-parms-title}
  31. `allow_no_match`::
  32. (Optional, Boolean)
  33. include::{es-repo-dir}/rest-api/common-parms.asciidoc[tag=allow-no-match-transforms2]
  34. `force`::
  35. (Optional, Boolean) Set to `true` to stop a failed {transform} or to
  36. forcefully stop a {transform} that did not respond to the initial stop
  37. request.
  38. `timeout`::
  39. (Optional, time value) If `wait_for_completion=true`, the API blocks for (at
  40. maximum) the specified duration while waiting for the {transform} to stop. If
  41. more than `timeout` time has passed, the API throws a timeout exception. Even
  42. if a timeout exception is thrown, the stop request is still processing and
  43. eventually moves the {transform} to `STOPPED`. The timeout simply means the API
  44. call itself timed out while waiting for the status change. Defaults to `30s`
  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. `wait_for_checkpoint`::
  50. (Optional, Boolean) If set to `true`, the transform will not completely stop
  51. until the current checkpoint is completed. If set to `false`, the {transform}
  52. stops as soon as possible. Defaults to `false`.
  53. [[stop-transform-response-codes]]
  54. == {api-response-codes-title}
  55. `404` (Missing resources)::
  56. If `allow_no_match` is `false`, this code indicates that there are no
  57. resources that match the request or only partial matches for the request.
  58. [[stop-transform-example]]
  59. == {api-examples-title}
  60. [source,console]
  61. --------------------------------------------------
  62. POST _transform/ecommerce_transform/_stop
  63. --------------------------------------------------
  64. // TEST[skip:set up kibana samples]
  65. When the {transform} stops, you receive the following results:
  66. [source,console-result]
  67. ----
  68. {
  69. "acknowledged" : true
  70. }
  71. ----