Method: Elasticsearch::API::Cluster::Actions#post_voting_config_exclusions
- Defined in:
- lib/elasticsearch/api/actions/cluster/post_voting_config_exclusions.rb
#post_voting_config_exclusions(arguments = {}) ⇒ Object
Updates the cluster voting config exclusions by node ids or node names.
35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 |
# File 'lib/elasticsearch/api/actions/cluster/post_voting_config_exclusions.rb', line 35 def post_voting_config_exclusions(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'cluster.post_voting_config_exclusions' } arguments = arguments.clone headers = arguments.delete(:headers) || {} body = nil method = Elasticsearch::API::HTTP_POST path = '_cluster/voting_config_exclusions' params = Utils.process_params(arguments) Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers, request_opts) ) end |