stop-transform.asciidoc 2.9 KB

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