Files
elasticsearch-js/docs/reference-cluster-get_settings.asciidoc
2024-12-05 14:46:52 -06:00

79 lines
4.1 KiB
Plaintext

[[reference-cluster-get_settings]]
////////
===========================================================================================================================
|| ||
|| ||
|| ||
|| ██████╗ ███████╗ █████╗ ██████╗ ███╗ ███╗███████╗ ||
|| ██╔══██╗██╔════╝██╔══██╗██╔══██╗████╗ ████║██╔════╝ ||
|| ██████╔╝█████╗ ███████║██║ ██║██╔████╔██║█████╗ ||
|| ██╔══██╗██╔══╝ ██╔══██║██║ ██║██║╚██╔╝██║██╔══╝ ||
|| ██║ ██║███████╗██║ ██║██████╔╝██║ ╚═╝ ██║███████╗ ||
|| ╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝╚═════╝ ╚═╝ ╚═╝╚══════╝ ||
|| ||
|| ||
|| This file is autogenerated, DO NOT send pull requests that changes this file directly. ||
|| You should update the script that does the generation, which can be found in: ||
|| https://github.com/elastic/elastic-client-generator-js ||
|| ||
|| You can run the script with the following command: ||
|| npm run elasticsearch -- --version <version> ||
|| ||
|| ||
|| ||
===========================================================================================================================
////////
[discrete]
[[client.cluster.getSettings]]
=== client.cluster.getSettings
Returns cluster-wide settings. By default, it returns only settings that have been explicitly defined.
{ref}/cluster-get-settings.html[{es} documentation]
[discrete]
==== Function signature
[source,ts]
----
(ClusterGetSettingsRequest, options?): Promise<ClusterGetSettingsResponse>
----
[discrete]
==== Request
[pass]
++++
<pre>
++++
interface ClusterGetSettingsRequest extends <<RequestBase>> {
flat_settings?: boolean
include_defaults?: boolean
master_timeout?: <<Duration>>
timeout?: <<Duration>>
}
[pass]
++++
</pre>
++++
[discrete]
==== Response
[pass]
++++
<pre>
++++
interface ClusterGetSettingsResponse {
persistent: Record<string, any>
transient: Record<string, any>
defaults?: Record<string, any>
}
[pass]
++++
</pre>
++++