Stop datafeeds
- POST /_ml/datafeeds/{datafeed_id}/_stop
A datafeed that is stopped ceases to retrieve data from Elasticsearch. A datafeed can be started and stopped multiple times throughout its lifecycle.
- Cluster privileges:
manage_ml
Path Parameters
-
datafeed_idstring Idrequired -
Identifier for the datafeed. You can stop multiple datafeeds in a single API request by using a comma-separated list of datafeeds or a wildcard expression. You can close all datafeeds by using
_allor by specifying*as the identifier.
Query Parameters
-
allow_no_matchboolean · default: true Specifies what to do when the request:
- Contains wildcard expressions and there are no datafeeds that match.
- Contains the
_allstring or no identifiers and there are no matches. - Contains wildcard expressions and there are only partial matches.
If
true, the API returns an empty datafeeds array when there are no matches and the subset of results when there are partial matches. Iffalse, the API returns a 404 status code when there are no matches or only partial matches.-
forceboolean · default: false If
true, the datafeed is stopped forcefully.-
timeoutstring Duration · default: 20s Specifies the amount of time to wait until a datafeed stops.
-
close_jobboolean · default: false If
truethe job associated with the datafeed is closed.
Request
-
allow_no_matchboolean · default: true -
Refer to the description for the
allow_no_matchquery parameter. -
forceboolean · default: false -
Refer to the description for the
forcequery parameter. -
timeoutstring Duration · default: 20s -
Refer to the description for the
timeoutquery parameter. -
close_jobboolean · default: false -
Refer to the description for the
close_jobquery parameter.