2018-07-02 13:25:17 -04:00
|
|
|
[[cluster-get-settings]]
|
2019-07-19 14:35:36 -04:00
|
|
|
=== Cluster Get Settings
|
2018-07-02 13:25:17 -04:00
|
|
|
|
|
|
|
The cluster get settings API allows to retrieve the cluster wide settings.
|
|
|
|
|
|
|
|
[source,js]
|
|
|
|
--------------------------------------------------
|
|
|
|
GET /_cluster/settings
|
|
|
|
--------------------------------------------------
|
|
|
|
// CONSOLE
|
|
|
|
|
|
|
|
Or
|
|
|
|
[source,js]
|
|
|
|
--------------------------------------------------
|
|
|
|
GET /_cluster/settings?include_defaults=true
|
|
|
|
--------------------------------------------------
|
|
|
|
// CONSOLE
|
|
|
|
|
|
|
|
In the second example above, the parameter `include_defaults` ensures that the settings which were not set explicitly
|
|
|
|
are also returned. By default `include_defaults` is set to false.
|