Method: OpenSearch::API::Cluster::Actions#reroute
- Defined in:
- lib/opensearch/api/actions/cluster/reroute.rb
#reroute(arguments = {}) ⇒ Object
Allows to manually change the allocation of individual shards in the cluster.
43 44 45 46 47 48 49 50 51 52 53 54 |
# File 'lib/opensearch/api/actions/cluster/reroute.rb', line 43 def reroute(arguments = {}) headers = arguments.delete(:headers) || {} arguments = arguments.clone method = OpenSearch::API::HTTP_POST path = "_cluster/reroute" params = Utils.__validate_and_extract_params arguments, ParamsRegistry.get(__method__) body = arguments[:body] || {} perform_request(method, path, params, body, headers).body end |