OpenSearch/x-pack/docs/en/rest-api/watcher/stop.asciidoc

39 lines
792 B
Plaintext
Raw Normal View History

[role="xpack"]
[[watcher-api-stop]]
=== Stop watch service API
2018-12-20 13:23:28 -05:00
++++
<titleabbrev>Stop watch service</titleabbrev>
2018-12-20 13:23:28 -05:00
++++
Stops the {watcher} service if it is running.
[float]
==== Request
`POST _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
[source,js]
--------------------------------------------------
POST _watcher/_stop
--------------------------------------------------
// CONSOLE
{watcher} returns the following response if the request is successful:
[source,js]
--------------------------------------------------
{
"acknowledged": true
}
--------------------------------------------------
// TESTRESPONSE