| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263 | --:api: get-settings:request: ClusterGetSettingsRequest:response: ClusterGetSettingsResponse--[id="{upid}-{api}"]=== Cluster Get Settings APIThe Cluster Get Settings API allows to get the cluster wide settings.[id="{upid}-{api}-request"]==== Cluster Get Settings RequestA +{request}+:["source","java",subs="attributes,callouts,macros"]--------------------------------------------------include-tagged::{doc-tests-file}[{api}-request]--------------------------------------------------==== Optional argumentsThe following arguments can optionally be provided:["source","java",subs="attributes,callouts,macros"]--------------------------------------------------include-tagged::{doc-tests-file}[{api}-request-includeDefaults]--------------------------------------------------<1> By default only those settings that were explicitly set are returned. Setting this to true also returnsthe default settings.["source","java",subs="attributes,callouts,macros"]--------------------------------------------------include-tagged::{doc-tests-file}[{api}-request-local]--------------------------------------------------<1> By default the request goes to the master of the cluster to get the latest results. If local is specified it getsthe results from whichever node the request goes to.["source","java",subs="attributes,callouts,macros"]--------------------------------------------------include-tagged::{doc-tests-file}[{api}-request-masterTimeout]--------------------------------------------------<1> Timeout to connect to the master node as a `TimeValue`<2> Timeout to connect to the master node as a `String`include::../execution.asciidoc[][id="{upid}-{api}-response"]==== Cluster Get Settings ResponseThe returned +{response}+ allows to retrieve information about theexecuted operation as follows:["source","java",subs="attributes,callouts,macros"]--------------------------------------------------include-tagged::{doc-tests-file}[{api}-response]--------------------------------------------------<1> Get the persistent settings.<2> Get the transient settings.<3> Get the default settings (returns empty settings if `includeDefaults` was not set to `true`).<4> Get the value as a `String` for a particular setting. The order of searching is first in `persistentSettings` then in`transientSettings` and finally, if not found in either, in `defaultSettings`.
 |