Start watch service APIedit

Starts the Watcher service if it is not already running.

Requestedit

POST _watcher/_start

Prerequisitesedit

  • You must have manage_watcher cluster privileges to use this API. For more information, see Security privileges.

Query parametersedit

master_timeout
(Optional, time units) 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. Defaults to 30s. Can also be set to -1 to indicate that the request should never timeout.

Examplesedit

response = client.watcher.start
puts response
POST _watcher/_start

Watcher returns the following response if the request is successful:

{
   "acknowledged": true
}