[[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 || || || || || || || =========================================================================================================================== //////// [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 ---- [discrete] ===== `ClusterRerouteRequest` [source,ts] ---- interface ClusterRerouteRequest extends <> { dry_run?: boolean explain?: boolean metric?: <> retry_failed?: boolean master_timeout?: <> timeout?: <> commands?: ClusterRerouteCommand[] } ---- [discrete] ===== `ClusterRerouteResponse` [source,ts] ---- interface ClusterRerouteResponse { acknowledged: boolean explanations?: ClusterRerouteRerouteExplanation[] state?: any } ----