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.

Parameters:

  • arguments (Hash) (defaults to: {})

    a customizable set of options

Options Hash (arguments):

  • :node_ids (String)

    A comma-separated list of the persistent ids of the nodes to exclude from the voting configuration. If specified, you may not also specify ?node_names.

  • :node_names (String)

    A comma-separated list of the names of the nodes to exclude from the voting configuration. If specified, you may not also specify ?node_ids.

  • :timeout (Time)

    Explicit operation timeout

  • :master_timeout (Time)

    Timeout for submitting request to master

  • :headers (Hash)

    Custom HTTP headers

See Also:


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