Elasticsearch专题精讲—— REST APIs —— Cluster APIs —— Cluster get settings API

REST APIs —— Cluster APIs —— Cluster get settings API

https://www.elastic.co/guide/en/elasticsearch/reference/8.8/cluster-get-settings.html#cluster-get-settings

Returns cluster-wide settings.

返回集群的设置。

        curl -X GET "localhost:9200/_cluster/settings?pretty"

1、Prerequisites(先决条件)

https://www.elastic.co/guide/en/elasticsearch/reference/8.8/cluster-get-settings.html#cluster-get-settings-api-prereqs

If the Elasticsearch security features are enabled, you must have the monitor or manage cluster privilege to use this API.

如果启用了 Elasticsearch 安全特性,则必须拥有监视器或管理集群特权才能使用此 API。

2、Request(请求)

https://www.elastic.co/guide/en/elasticsearch/reference/8.8/cluster-get-settings.html#cluster-get-settings-api-request

        GET /_cluster/settings
    

3、Description(描述)

https://www.elastic.co/guide/en/elasticsearch/reference/8.8/cluster-get-settings.html#cluster-get-settings-api-desc

By default, this API call only returns settings that have been explicitly defined, but can also include the default settings by calling the include_defaults parameter.

默认情况下,该API调用仅返回已显式定义的设置,但可以通过调用 include_defaults 参数来包括默认设置。

结束

posted @ 2023-06-24 22:44  左扬  阅读(17)  评论(0编辑  收藏  举报
levels of contents