elasticsearch/docs/reference/transform/apis/stop-transform.asciidoc
Liam Thompson 33a71e3289
[DOCS] Refactor book-scoped variables in docs/reference/index.asciidoc (#107413)
* Remove `es-test-dir` book-scoped variable

* Remove `plugins-examples-dir` book-scoped variable

* Remove `:dependencies-dir:` and `:xes-repo-dir:` book-scoped variables

- In `index.asciidoc`, two variables (`:dependencies-dir:` and `:xes-repo-dir:`) were removed.
- In `sql/index.asciidoc`, the `:sql-tests:` path was updated to fuller path
- In `esql/index.asciidoc`, the `:esql-tests:` path was updated idem

* Replace `es-repo-dir` with `es-ref-dir`

* Move `:include-xpack: true` to few files that use it, remove from index.asciidoc
2024-04-17 14:37:07 +02:00

93 lines
2.7 KiB
Text

[role="xpack"]
[[stop-transform]]
= Stop {transforms} API
[subs="attributes"]
++++
<titleabbrev>Stop {transforms}</titleabbrev>
++++
Stops one or more {transforms}.
[[stop-transform-request]]
== {api-request-title}
`POST _transform/<transform_id>/_stop` +
`POST _transform/<transform_id1>,<transform_id2>/_stop` +
`POST _transform/_all/_stop`
[[stop-transform-prereq]]
== {api-prereq-title}
Requires the `manage_transform` cluster privilege. This privilege is included
in the `transform_admin` built-in role.
[[stop-transform-path-parms]]
== {api-path-parms-title}
`<transform_id>`::
(Required, string)
Identifier for the transform. To stop multiple {transforms}, use a
comma-separated list or a wildcard expression. To stop all {transforms}, use
`_all` or `*` as the identifier.
[[stop-transform-query-parms]]
== {api-query-parms-title}
`allow_no_match`::
(Optional, Boolean)
include::{es-ref-dir}/rest-api/common-parms.asciidoc[tag=allow-no-match-transforms2]
`force`::
(Optional, Boolean) Set to `true` to stop a failed {transform} or to
forcefully stop a {transform} that did not respond to the initial stop
request.
`timeout`::
(Optional, time value) If `wait_for_completion=true`, the API blocks for (at
maximum) the specified duration while waiting for the {transform} to stop. If
more than `timeout` time has passed, the API throws a timeout exception. Even
if a timeout exception is thrown, the stop request is still processing and
eventually moves the {transform} to `STOPPED`. The timeout simply means the API
call itself timed out while waiting for the status change. Defaults to `30s`.
`wait_for_checkpoint`::
(Optional, Boolean) If set to `true`, the transform will not completely stop
until the current checkpoint is completed. If set to `false`, the {transform}
stops as soon as possible. Defaults to `false`.
`wait_for_completion`::
(Optional, 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`.
[[stop-transform-response-codes]]
== {api-response-codes-title}
`404` (Missing resources)::
If `allow_no_match` is `false`, this code indicates that there are no
resources that match the request or only partial matches for the request.
[[stop-transform-example]]
== {api-examples-title}
[source,console]
--------------------------------------------------
POST _transform/ecommerce_transform/_stop
--------------------------------------------------
// TEST[skip:set up kibana samples]
When the {transform} stops, you receive the following results:
[source,console-result]
----
{
"acknowledged" : true
}
----