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

Get Watcher index settings

New API reference

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

This API allows a user to retrieve the user-configurable settings for the Watcher internal index (.watches). Only a subset of the index settings—those that are user-configurable—will be shown. This includes:

  • index.auto_expand_replicas
  • index.number_of_replicas

An example of retrieving the Watcher settings:

resp = client.perform_request(
    "GET",
    "/_watcher/settings",
)
print(resp)
response = client.watcher.get_settings
puts response
const response = await client.transport.request({
  method: "GET",
  path: "/_watcher/settings",
});
console.log(response);
GET /_watcher/settings

The configurable settings can be modified using the Update Watcher index settings API.

© 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-get-settings.html

Spec-Zone.ru

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