Spec-Zone.ru › Elasticsearch 8
›Elasticsearch Guide [8.17] ›REST APIs ›Watcher APIs

Start watch service API

New API reference

For the most up-to-date API details, refer to Watcher APIs.

Starts the Watcher service if it is not already running.

Request

POST _watcher/_start

Prerequisites

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

Examples

resp = client.watcher.start()
print(resp)
response = client.watcher.start
puts response
const response = await client.watcher.start();
console.log(response);
POST _watcher/_start

Watcher returns the following response if the request is successful:

{
   "acknowledged": true
}

© 2023-2025 Elasticsearch
As of September 2024, Elasticsearch is available under a choice of three licenses: the Server Side Public License (SSPL), the Elastic License, or the AGPLv3 (OSI approved).
Elasticsearch and the Elasticsearch logo are trademarks of Elasticsearch B.V., registered in the U.S. and in other countries.
https://www.elastic.co/guide/en/elasticsearch/reference/8.17/watcher-api-start.html

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API