summaryrefslogtreecommitdiff
path: root/rest-api-spec/api/cluster.reroute.json
blob: 9adf747bf556c1a4abcb3c0ac2d9a65bba833105 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
{
  "cluster.reroute": {
    "documentation": "http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-reroute.html",
    "methods": ["POST"],
    "url": {
      "path": "/_cluster/reroute",
      "paths": ["/_cluster/reroute"],
      "parts": {
      },
      "params": {
        "dry_run": {
          "type" : "boolean",
          "description" : "Simulate the operation only and return the resulting state"
        },
        "filter_metadata": {
          "type" : "boolean",
          "description" : "Don't return cluster state metadata (default: false)"
        },
        "master_timeout": {
          "type" : "time",
          "description" : "Explicit operation timeout for connection to master node"
        },
        "timeout": {
          "type" : "time",
          "description" : "Explicit operation timeout"
        }
      }
    },
    "body": {
      "description" : "The definition of `commands` to perform (`move`, `cancel`, `allocate`)"
    }
  }
}