Stop the watch service
Generally available
Stop the Watcher service if it is running.
Required authorization
- Cluster privileges:
manage_watcher
Query parameters
-
master_timeout
string The period to wait for the master node. If the master node is not available before the timeout expires, the request fails and returns an error. To indicate that the request should never timeout, set it to
-1
.Values are
-1
or0
.
POST
/_watcher/_stop
Console
POST _watcher/_stop
resp = client.watcher.stop()
const response = await client.watcher.stop();
response = client.watcher.stop
$resp = $client->watcher()->stop();
curl -X POST -H "Authorization: ApiKey $ELASTIC_API_KEY" "$ELASTICSEARCH_URL/_watcher/_stop"
Response examples (200)
A successful response from `POST _watcher/_stop`.
{
"acknowledged": true
}