71 lines
4.1 KiB
Plaintext
71 lines
4.1 KiB
Plaintext
[[reference-cluster-reroute]]
|
|
|
|
////////
|
|
===========================================================================================================================
|
|
|| ||
|
|
|| ||
|
|
|| ||
|
|
|| ██████╗ ███████╗ █████╗ ██████╗ ███╗ ███╗███████╗ ||
|
|
|| ██╔══██╗██╔════╝██╔══██╗██╔══██╗████╗ ████║██╔════╝ ||
|
|
|| ██████╔╝█████╗ ███████║██║ ██║██╔████╔██║█████╗ ||
|
|
|| ██╔══██╗██╔══╝ ██╔══██║██║ ██║██║╚██╔╝██║██╔══╝ ||
|
|
|| ██║ ██║███████╗██║ ██║██████╔╝██║ ╚═╝ ██║███████╗ ||
|
|
|| ╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝╚═════╝ ╚═╝ ╚═╝╚══════╝ ||
|
|
|| ||
|
|
|| ||
|
|
|| 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.reroute
|
|
|
|
Allows to manually change the allocation of individual shards in the cluster.
|
|
|
|
{ref}/cluster-reroute.html[{es} documentation]
|
|
|
|
[discrete]
|
|
==== Function signature
|
|
|
|
[source,ts]
|
|
----
|
|
(ClusterRerouteRequest, options?): Promise<ClusterRerouteResponse>
|
|
----
|
|
|
|
[discrete]
|
|
===== `ClusterRerouteRequest`
|
|
|
|
[source,ts]
|
|
----
|
|
interface ClusterRerouteRequest extends <<shared-type-request-base, RequestBase>> {
|
|
dry_run?: boolean
|
|
explain?: boolean
|
|
metric?: <<shared-type-metrics, Metrics>>
|
|
retry_failed?: boolean
|
|
master_timeout?: <<shared-type-duration, Duration>>
|
|
timeout?: <<shared-type-duration, Duration>>
|
|
commands?: ClusterRerouteCommand[]
|
|
}
|
|
----
|
|
|
|
[discrete]
|
|
===== `ClusterRerouteResponse`
|
|
|
|
[source,ts]
|
|
----
|
|
interface ClusterRerouteResponse {
|
|
acknowledged: boolean
|
|
explanations?: ClusterRerouteRerouteExplanation[]
|
|
state?: any
|
|
}
|
|
----
|
|
|