mirror of
https://github.com/elastic/elasticsearch.git
synced 2025-04-24 23:27:25 -04:00
Specifying `?master_timeout=-1` on an API which performs a cluster state update means that the cluster state update task will never time out while waiting in the pending tasks queue. However this parameter is also re-used in a few places where a timeout of `-1` means something else, typically to timeout immediately. This commit fixes those places so that `?master_timeout=-1` consistently means to wait forever.
56 lines
1.3 KiB
Text
56 lines
1.3 KiB
Text
[role="xpack"]
|
|
[[watcher-api-stop]]
|
|
=== Stop watch service API
|
|
++++
|
|
<titleabbrev>Stop watch service</titleabbrev>
|
|
++++
|
|
|
|
Stops the {watcher} service if it is running.
|
|
|
|
[[watcher-api-stop-request]]
|
|
==== {api-request-title}
|
|
|
|
`POST _watcher/_stop`
|
|
|
|
[[watcher-api-stop-prereqs]]
|
|
==== {api-prereq-title}
|
|
|
|
* You must have `manage_watcher` cluster privileges to use this API. For more
|
|
information, see <<security-privileges>>.
|
|
|
|
//[[watcher-api-stop-desc]]
|
|
//==== {api-description-title}
|
|
|
|
//[[watcher-api-stop-path-params]]
|
|
//==== {api-path-parms-title}
|
|
|
|
[[watcher-api-stop-query-params]]
|
|
==== {api-query-parms-title}
|
|
|
|
include::{es-repo-dir}/rest-api/common-parms.asciidoc[tag=master-timeout]
|
|
|
|
//[[watcher-api-stop-request-body]]
|
|
//==== {api-request-body-title}
|
|
|
|
//[[watcher-api-stop-response-body]]
|
|
//==== {api-response-body-title}
|
|
|
|
//[[watcher-api-stop-response-codes]]
|
|
//==== {api-response-codes-title}
|
|
|
|
[[watcher-api-stop-example]]
|
|
==== {api-examples-title}
|
|
|
|
[source,console]
|
|
--------------------------------------------------
|
|
POST _watcher/_stop
|
|
--------------------------------------------------
|
|
|
|
{watcher} returns the following response if the request is successful:
|
|
|
|
[source,console-result]
|
|
--------------------------------------------------
|
|
{
|
|
"acknowledged": true
|
|
}
|
|
--------------------------------------------------
|