2017-06-27 20:16:51 -04:00
|
|
|
[role="xpack"]
|
2017-03-29 12:07:55 -04:00
|
|
|
[[watcher-api-stop]]
|
|
|
|
=== Stop API
|
|
|
|
|
2017-09-14 16:01:47 -04:00
|
|
|
The `stop` API stops the {watcher} service if the service is running.
|
|
|
|
|
|
|
|
[float]
|
|
|
|
==== Request
|
|
|
|
|
|
|
|
`POST _xpack/watcher/_stop`
|
|
|
|
|
|
|
|
[float]
|
|
|
|
==== Authorization
|
|
|
|
|
|
|
|
You must have `manage_watcher` cluster privileges to use this API. For more
|
|
|
|
information, see {xpack-ref}/security-privileges.html[Security Privileges].
|
|
|
|
|
|
|
|
[float]
|
|
|
|
==== Examples
|
2017-03-29 12:07:55 -04:00
|
|
|
|
|
|
|
[source,js]
|
|
|
|
--------------------------------------------------
|
|
|
|
POST _xpack/watcher/_stop
|
|
|
|
--------------------------------------------------
|
|
|
|
// CONSOLE
|
|
|
|
|
|
|
|
{watcher} returns the following response if the request is successful:
|
|
|
|
|
|
|
|
[source,js]
|
|
|
|
--------------------------------------------------
|
|
|
|
{
|
|
|
|
"acknowledged": true
|
|
|
|
}
|
|
|
|
--------------------------------------------------
|
|
|
|
// TESTRESPONSE
|