2019-03-21 12:38:00 -04:00
|
|
|
[role="xpack"]
|
|
|
|
[testenv="basic"]
|
|
|
|
[[stop-data-frame-transform]]
|
|
|
|
=== Stop {dataframe-transforms} API
|
2019-04-30 13:46:13 -04:00
|
|
|
|
|
|
|
[subs="attributes"]
|
2019-03-21 12:38:00 -04:00
|
|
|
++++
|
|
|
|
<titleabbrev>Stop {dataframe-transforms}</titleabbrev>
|
|
|
|
++++
|
|
|
|
|
|
|
|
Stops one or more {dataframe-transforms}.
|
|
|
|
|
2019-07-10 17:39:38 -04:00
|
|
|
beta[]
|
|
|
|
|
2019-06-26 16:46:21 -04:00
|
|
|
[[stop-data-frame-transform-request]]
|
|
|
|
==== {api-request-title}
|
2019-03-21 12:38:00 -04:00
|
|
|
|
2019-04-15 09:33:16 -04:00
|
|
|
`POST _data_frame/transforms/<data_frame_transform_id>/_stop` +
|
2019-03-21 12:38:00 -04:00
|
|
|
|
2019-04-15 09:33:16 -04:00
|
|
|
`POST _data_frame/transforms/<data_frame_transform_id1>,<data_frame_transform_id2>/_stop` +
|
|
|
|
|
|
|
|
`POST _data_frame/transforms/_all/_stop`
|
|
|
|
|
2019-06-26 16:46:21 -04:00
|
|
|
[[stop-data-frame-transform-prereq]]
|
|
|
|
==== {api-prereq-title}
|
|
|
|
|
2019-06-27 18:16:24 -04:00
|
|
|
* If the {es} {security-features} are enabled, you must have
|
2019-06-26 16:46:21 -04:00
|
|
|
`manage_data_frame_transforms` cluster privileges to use this API. The built-in
|
|
|
|
`data_frame_transforms_admin` role has these privileges. For more information,
|
|
|
|
see {stack-ov}/security-privileges.html[Security privileges] and
|
|
|
|
{stack-ov}/built-in-roles.html[Built-in roles].
|
|
|
|
|
|
|
|
[[stop-data-frame-transform-desc]]
|
|
|
|
==== {api-description-title}
|
2019-04-15 09:33:16 -04:00
|
|
|
|
|
|
|
You can stop multiple {dataframe-transforms} in a single API request by using a
|
|
|
|
comma-separated list of {dataframe-transforms} or a wildcard expression.
|
2019-06-26 16:46:21 -04:00
|
|
|
All {dataframe-transforms} can be stopped by using `_all` or `*` as the
|
|
|
|
`<data_frame_transform_id>`.
|
2019-03-21 12:38:00 -04:00
|
|
|
|
2019-06-26 16:46:21 -04:00
|
|
|
[[stop-data-frame-transform-path-parms]]
|
|
|
|
==== {api-path-parms-title}
|
2019-03-21 12:38:00 -04:00
|
|
|
|
2019-07-10 17:39:38 -04:00
|
|
|
`<data_frame_transform_id>`::
|
2019-07-12 11:26:31 -04:00
|
|
|
(Required, string) Identifier for the {dataframe-transform}. This identifier
|
2019-07-10 17:39:38 -04:00
|
|
|
can contain lowercase alphanumeric characters (a-z and 0-9), hyphens, and
|
|
|
|
underscores. It must start and end with alphanumeric characters.
|
2019-03-21 12:38:00 -04:00
|
|
|
|
2019-06-26 16:46:21 -04:00
|
|
|
[[stop-data-frame-transform-query-parms]]
|
|
|
|
==== {api-query-parms-title}
|
|
|
|
|
2019-07-10 17:39:38 -04:00
|
|
|
`allow_no_match`::
|
2019-07-12 11:26:31 -04:00
|
|
|
(Optional, boolean) Specifies what to do when the request:
|
2019-06-27 18:16:24 -04:00
|
|
|
+
|
|
|
|
--
|
|
|
|
* Contains wildcard expressions and there are no {dataframe-transforms} that match.
|
|
|
|
* Contains the `_all` string or no identifiers and there are no matches.
|
|
|
|
* Contains wildcard expressions and there are only partial matches.
|
|
|
|
|
|
|
|
The default value is `true`, which returns a successful acknowledgement message
|
|
|
|
when there are no matches. When there are only partial matches, the API stops
|
|
|
|
the appropriate {dataframe-transforms}. For example, if the request contains
|
|
|
|
`test-id1*,test-id2*` as the identifiers and there are no {dataframe-transforms}
|
|
|
|
that match `test-id2*`, the API nonetheless stops the {dataframe-transforms}
|
|
|
|
that match `test-id1*`.
|
|
|
|
|
|
|
|
If this parameter is `false`, the request returns a `404` status code when there
|
|
|
|
are no matches or only partial matches.
|
|
|
|
--
|
2019-06-26 16:46:21 -04:00
|
|
|
|
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-07-10 17:39:38 -04:00
|
|
|
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
|
2019-06-26 16:46:21 -04:00
|
|
|
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`
|
|
|
|
|
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-06-27 18:16:24 -04:00
|
|
|
[[stop-data-frame-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.
|
|
|
|
|
2019-06-26 16:46:21 -04:00
|
|
|
[[stop-data-frame-transform-example]]
|
2019-06-27 12:42:47 -04:00
|
|
|
==== {api-examples-title}
|
2019-03-21 12:38:00 -04:00
|
|
|
|
|
|
|
[source,js]
|
|
|
|
--------------------------------------------------
|
|
|
|
POST _data_frame/transforms/ecommerce_transform/_stop
|
|
|
|
--------------------------------------------------
|
|
|
|
// CONSOLE
|
|
|
|
// TEST[skip:set up kibana samples]
|
|
|
|
|
|
|
|
When the {dataframe-transform} stops, you receive the following results:
|
|
|
|
[source,js]
|
|
|
|
----
|
|
|
|
{
|
2019-05-29 05:13:37 -04:00
|
|
|
"acknowledged" : true
|
2019-03-21 12:38:00 -04:00
|
|
|
}
|
|
|
|
----
|
|
|
|
// TESTRESPONSE
|