stop-transform.asciidoc 3.0 KB

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