Method: Elasticsearch::API::Cluster::Actions#get_settings
- Defined in:
- lib/elasticsearch/api/actions/cluster/get_settings.rb
#get_settings(arguments = {}) ⇒ Object
Returns cluster settings.
35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 |
# File 'lib/elasticsearch/api/actions/cluster/get_settings.rb', line 35 def get_settings(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'cluster.get_settings' } arguments = arguments.clone headers = arguments.delete(:headers) || {} body = nil method = Elasticsearch::API::HTTP_GET path = '_cluster/settings' params = Utils.process_params(arguments) Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers, request_opts) ) end |