mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-06 04:58:50 +00:00
* [DOCS] Format Watcher APIs * [DOCS] Removed master_timeout from Watcher APIs * [DOCS] Added authority info to watcher APIs Original commit: elastic/x-pack-elasticsearch@1e6de3b036
36 lines
758 B
Plaintext
36 lines
758 B
Plaintext
[role="xpack"]
|
|
[[watcher-api-stop]]
|
|
=== Stop API
|
|
|
|
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
|
|
|
|
[source,js]
|
|
--------------------------------------------------
|
|
POST _xpack/watcher/_stop
|
|
--------------------------------------------------
|
|
// CONSOLE
|
|
|
|
{watcher} returns the following response if the request is successful:
|
|
|
|
[source,js]
|
|
--------------------------------------------------
|
|
{
|
|
"acknowledged": true
|
|
}
|
|
--------------------------------------------------
|
|
// TESTRESPONSE
|