2019-03-21 12:38:00 -04:00
|
|
|
[role="xpack"]
|
|
|
|
[testenv="basic"]
|
2019-09-20 18:57:43 -04:00
|
|
|
[[stop-transform]]
|
2020-07-22 14:22:57 -04:00
|
|
|
= Stop {transforms} API
|
2019-04-30 13:46:13 -04:00
|
|
|
|
|
|
|
[subs="attributes"]
|
2019-03-21 12:38:00 -04:00
|
|
|
++++
|
2019-09-16 11:28:19 -04:00
|
|
|
<titleabbrev>Stop {transforms}</titleabbrev>
|
2019-03-21 12:38:00 -04:00
|
|
|
++++
|
|
|
|
|
2019-09-16 11:28:19 -04:00
|
|
|
Stops one or more {transforms}.
|
2019-03-21 12:38:00 -04:00
|
|
|
|
2019-09-18 03:14:32 -04:00
|
|
|
|
2019-09-20 18:57:43 -04:00
|
|
|
[[stop-transform-request]]
|
2020-07-22 14:22:57 -04:00
|
|
|
== {api-request-title}
|
2019-03-21 12:38:00 -04:00
|
|
|
|
2019-10-08 02:59:01 -04:00
|
|
|
`POST _transform/<transform_id>/_stop` +
|
2019-03-21 12:38:00 -04:00
|
|
|
|
2019-10-08 02:59:01 -04:00
|
|
|
`POST _transform/<transform_id1>,<transform_id2>/_stop` +
|
2019-04-15 09:33:16 -04:00
|
|
|
|
2019-10-08 02:59:01 -04:00
|
|
|
`POST _transform/_all/_stop`
|
2019-04-15 09:33:16 -04:00
|
|
|
|
2019-09-18 03:14:32 -04:00
|
|
|
|
2019-09-20 18:57:43 -04:00
|
|
|
[[stop-transform-prereq]]
|
2020-07-22 14:22:57 -04:00
|
|
|
== {api-prereq-title}
|
2019-06-26 16:46:21 -04:00
|
|
|
|
2020-04-06 11:06:22 -04:00
|
|
|
If the {es} {security-features} are enabled, you must have the following
|
|
|
|
built-in roles and privileges:
|
|
|
|
|
|
|
|
* `manage_transform`
|
|
|
|
|
|
|
|
The built-in `transform_admin` role has this privilege.
|
|
|
|
|
|
|
|
For more information, see <<security-privileges>> and <<built-in-roles>>.
|
2019-06-26 16:46:21 -04:00
|
|
|
|
2019-09-18 03:14:32 -04:00
|
|
|
|
2019-09-20 18:57:43 -04:00
|
|
|
[[stop-transform-desc]]
|
2020-07-22 14:22:57 -04:00
|
|
|
== {api-description-title}
|
2019-04-15 09:33:16 -04:00
|
|
|
|
2019-09-16 11:28:19 -04:00
|
|
|
You can stop multiple {transforms} in a single API request by using a
|
|
|
|
comma-separated list of {transforms} or a wildcard expression.
|
|
|
|
All {transforms} can be stopped by using `_all` or `*` as the
|
2019-09-20 18:57:43 -04:00
|
|
|
`<transform_id>`.
|
2019-03-21 12:38:00 -04:00
|
|
|
|
2019-09-18 03:14:32 -04:00
|
|
|
|
2019-09-20 18:57:43 -04:00
|
|
|
[[stop-transform-path-parms]]
|
2020-07-22 14:22:57 -04:00
|
|
|
== {api-path-parms-title}
|
2019-03-21 12:38:00 -04:00
|
|
|
|
2019-09-20 18:57:43 -04:00
|
|
|
`<transform_id>`::
|
2019-12-17 12:01:31 -05:00
|
|
|
(Required, string)
|
2020-06-01 16:46:15 -04:00
|
|
|
include::{es-repo-dir}/rest-api/common-parms.asciidoc[tag=transform-id]
|
2019-09-18 03:14:32 -04:00
|
|
|
|
2019-09-20 18:57:43 -04:00
|
|
|
[[stop-transform-query-parms]]
|
2020-07-22 14:22:57 -04:00
|
|
|
== {api-query-parms-title}
|
2019-06-26 16:46:21 -04:00
|
|
|
|
2019-07-10 17:39:38 -04:00
|
|
|
`allow_no_match`::
|
2019-12-17 12:01:31 -05:00
|
|
|
(Optional, boolean)
|
2020-06-01 16:46:15 -04:00
|
|
|
include::{es-repo-dir}/rest-api/common-parms.asciidoc[tag=allow-no-match-transforms2]
|
2019-06-26 16:46:21 -04:00
|
|
|
|
2019-09-18 03:14:32 -04:00
|
|
|
`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.
|
|
|
|
|
2019-07-10 17:39:38 -04:00
|
|
|
`timeout`::
|
2019-07-12 11:26:31 -04:00
|
|
|
(Optional, time value) If `wait_for_completion=true`, the API blocks for (at
|
2019-09-16 11:28:19 -04:00
|
|
|
maximum) the specified duration while waiting for the {transform} to stop. If
|
2019-07-10 17:39:38 -04: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 11:28:19 -04:00
|
|
|
eventually moves the {transform} to `STOPPED`. The timeout simply means the API
|
2019-06-26 16:46:21 -04:00
|
|
|
call itself timed out while waiting for the status change. Defaults to `30s`
|
|
|
|
|
2019-07-10 17:39:38 -04:00
|
|
|
`wait_for_completion`::
|
2019-07-12 11:26:31 -04:00
|
|
|
(Optional, boolean) If set to `true`, causes the API to block until the indexer
|
2019-07-10 17:39:38 -04:00
|
|
|
state completely stops. If set to `false`, the API returns immediately and the
|
2019-06-26 16:46:21 -04:00
|
|
|
indexer will be stopped asynchronously in the background. Defaults to `false`.
|
|
|
|
|
2019-10-28 13:02:57 -04:00
|
|
|
`wait_for_checkpoint`::
|
|
|
|
(Optional, boolean) If set to `true`, the transform will not completely stop
|
2019-12-17 12:01:31 -05:00
|
|
|
until the current checkpoint is completed. If set to `false`, the {transform}
|
2019-10-28 13:02:57 -04:00
|
|
|
stops as soon as possible. Defaults to `false`.
|
2019-09-18 03:14:32 -04:00
|
|
|
|
2019-09-20 18:57:43 -04:00
|
|
|
[[stop-transform-response-codes]]
|
2020-07-22 14:22:57 -04:00
|
|
|
== {api-response-codes-title}
|
2019-06-27 18:16:24 -04: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 03:14:32 -04:00
|
|
|
|
2019-09-20 18:57:43 -04:00
|
|
|
[[stop-transform-example]]
|
2020-07-22 14:22:57 -04:00
|
|
|
== {api-examples-title}
|
2019-03-21 12:38:00 -04:00
|
|
|
|
2019-09-09 13:38:14 -04:00
|
|
|
[source,console]
|
2019-03-21 12:38:00 -04:00
|
|
|
--------------------------------------------------
|
2019-10-08 02:59:01 -04:00
|
|
|
POST _transform/ecommerce_transform/_stop
|
2019-03-21 12:38:00 -04:00
|
|
|
--------------------------------------------------
|
|
|
|
// TEST[skip:set up kibana samples]
|
|
|
|
|
2019-09-16 11:28:19 -04:00
|
|
|
When the {transform} stops, you receive the following results:
|
2019-09-06 09:22:08 -04:00
|
|
|
|
|
|
|
[source,console-result]
|
2019-03-21 12:38:00 -04:00
|
|
|
----
|
|
|
|
{
|
2019-05-29 05:13:37 -04:00
|
|
|
"acknowledged" : true
|
2019-03-21 12:38:00 -04:00
|
|
|
}
|
|
|
|
----
|