2019-03-22 00:38:00 +08:00
|
|
|
[role="xpack"]
|
2019-09-21 04:26:57 +08:00
|
|
|
[[stop-transform]]
|
2020-07-23 01:55:48 +08:00
|
|
|
= Stop {transforms} API
|
2019-05-01 01:46:13 +08:00
|
|
|
|
|
|
|
[subs="attributes"]
|
2019-03-22 00:38:00 +08:00
|
|
|
++++
|
2019-09-16 23:28:19 +08:00
|
|
|
<titleabbrev>Stop {transforms}</titleabbrev>
|
2019-03-22 00:38:00 +08:00
|
|
|
++++
|
|
|
|
|
2019-09-16 23:28:19 +08:00
|
|
|
Stops one or more {transforms}.
|
2019-03-22 00:38:00 +08:00
|
|
|
|
2019-09-18 15:14:32 +08:00
|
|
|
|
2019-09-21 04:26:57 +08:00
|
|
|
[[stop-transform-request]]
|
2020-07-23 01:55:48 +08:00
|
|
|
== {api-request-title}
|
2019-03-22 00:38:00 +08:00
|
|
|
|
2019-10-07 22:21:51 +08:00
|
|
|
`POST _transform/<transform_id>/_stop` +
|
2019-03-22 00:38:00 +08:00
|
|
|
|
2019-10-07 22:21:51 +08:00
|
|
|
`POST _transform/<transform_id1>,<transform_id2>/_stop` +
|
2019-04-15 21:33:16 +08:00
|
|
|
|
2019-10-07 22:21:51 +08:00
|
|
|
`POST _transform/_all/_stop`
|
2019-04-15 21:33:16 +08:00
|
|
|
|
2019-09-18 15:14:32 +08:00
|
|
|
|
2019-09-21 04:26:57 +08:00
|
|
|
[[stop-transform-prereq]]
|
2020-07-23 01:55:48 +08:00
|
|
|
== {api-prereq-title}
|
2019-06-27 04:46:21 +08:00
|
|
|
|
2021-05-06 21:19:28 +08:00
|
|
|
Requires the `manage_transform` cluster privilege. This privilege is included
|
|
|
|
in the `transform_admin` built-in role.
|
2019-06-27 04:46:21 +08:00
|
|
|
|
2019-09-18 15:14:32 +08:00
|
|
|
|
2019-09-21 04:26:57 +08:00
|
|
|
[[stop-transform-path-parms]]
|
2020-07-23 01:55:48 +08:00
|
|
|
== {api-path-parms-title}
|
2019-03-22 00:38:00 +08:00
|
|
|
|
2019-09-21 04:26:57 +08:00
|
|
|
`<transform_id>`::
|
2019-12-18 01:01:31 +08:00
|
|
|
(Required, string)
|
2021-12-03 05:28:28 +08:00
|
|
|
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.
|
2019-09-18 15:14:32 +08:00
|
|
|
|
2019-09-21 04:26:57 +08:00
|
|
|
[[stop-transform-query-parms]]
|
2020-07-23 01:55:48 +08:00
|
|
|
== {api-query-parms-title}
|
2019-06-27 04:46:21 +08:00
|
|
|
|
2019-07-11 05:39:38 +08:00
|
|
|
`allow_no_match`::
|
2020-10-29 21:04:43 +08:00
|
|
|
(Optional, Boolean)
|
2020-06-02 02:46:10 +08:00
|
|
|
include::{es-repo-dir}/rest-api/common-parms.asciidoc[tag=allow-no-match-transforms2]
|
2019-06-27 04:46:21 +08:00
|
|
|
|
2019-09-18 15:14:32 +08:00
|
|
|
`force`::
|
2020-10-29 21:04:43 +08:00
|
|
|
(Optional, Boolean) Set to `true` to stop a failed {transform} or to
|
2019-09-18 15:14:32 +08:00
|
|
|
forcefully stop a {transform} that did not respond to the initial stop
|
|
|
|
request.
|
|
|
|
|
2019-07-11 05:39:38 +08:00
|
|
|
`timeout`::
|
2019-07-12 23:26:31 +08:00
|
|
|
(Optional, time value) If `wait_for_completion=true`, the API blocks for (at
|
2019-09-16 23:28:19 +08:00
|
|
|
maximum) the specified duration while waiting for the {transform} to stop. If
|
2019-07-11 05:39:38 +08:00
|
|
|
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
|
2019-09-16 23:28:19 +08:00
|
|
|
eventually moves the {transform} to `STOPPED`. The timeout simply means the API
|
2021-12-03 05:28:28 +08:00
|
|
|
call itself timed out while waiting for the status change. Defaults to `30s`.
|
2019-06-27 04:46:21 +08:00
|
|
|
|
2019-10-28 23:21:21 +08:00
|
|
|
`wait_for_checkpoint`::
|
2020-10-29 21:04:43 +08:00
|
|
|
(Optional, Boolean) If set to `true`, the transform will not completely stop
|
2019-12-18 01:01:31 +08:00
|
|
|
until the current checkpoint is completed. If set to `false`, the {transform}
|
2019-10-28 23:21:21 +08:00
|
|
|
stops as soon as possible. Defaults to `false`.
|
2019-09-18 15:14:32 +08:00
|
|
|
|
2021-12-03 05:28:28 +08:00
|
|
|
`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`.
|
|
|
|
|
2019-09-21 04:26:57 +08:00
|
|
|
[[stop-transform-response-codes]]
|
2020-07-23 01:55:48 +08:00
|
|
|
== {api-response-codes-title}
|
2019-06-28 06:16:24 +08:00
|
|
|
|
|
|
|
`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.
|
|
|
|
|
2019-09-18 15:14:32 +08:00
|
|
|
|
2019-09-21 04:26:57 +08:00
|
|
|
[[stop-transform-example]]
|
2020-07-23 01:55:48 +08:00
|
|
|
== {api-examples-title}
|
2019-03-22 00:38:00 +08:00
|
|
|
|
2019-09-10 01:13:41 +08:00
|
|
|
[source,console]
|
2019-03-22 00:38:00 +08:00
|
|
|
--------------------------------------------------
|
2019-10-07 22:21:51 +08:00
|
|
|
POST _transform/ecommerce_transform/_stop
|
2019-03-22 00:38:00 +08:00
|
|
|
--------------------------------------------------
|
|
|
|
// TEST[skip:set up kibana samples]
|
|
|
|
|
2019-09-16 23:28:19 +08:00
|
|
|
When the {transform} stops, you receive the following results:
|
2019-09-06 04:47:18 +08:00
|
|
|
|
|
|
|
[source,console-result]
|
2019-03-22 00:38:00 +08:00
|
|
|
----
|
|
|
|
{
|
2019-05-29 17:13:37 +08:00
|
|
|
"acknowledged" : true
|
2019-03-22 00:38:00 +08:00
|
|
|
}
|
|
|
|
----
|