Menu
Reroute the cluster
Reroute the cluster
POST
/_cluster/rerouteUse it in a workflow
- Add a step and choose the Elasticsearch connector.
- Pick the Reroute the cluster action (under cluster).
- Fill in the fields below, then reference the result from later steps as
{{rerouteTheCluster.response.data}}.
Request
Query parameters
Request body
Enter the body as JSON in the step's Body field.
{
"commands": [
{
"cancel": null,
"move": null,
"allocate_replica": null,
"allocate_stale_primary": null,
"allocate_empty_primary": null
}
]
}
Response
Returns 200 with an object. Read it in later steps with {{rerouteTheCluster.response.data.<field>}}.
{
"acknowledged": false,
"explanations": [
{
"command": "string",
"decisions": [
{
"decider": "string",
"decision": "string",
"explanation": "string"
}
],
"parameters": null
}
],
"state": {}
}
Need more? See the Elasticsearch guide for connection setup and behaviour shared by every action.
Was this page helpful?