forked from elastic/elasticsearch-specification
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcluster.reroute.json
61 lines (61 loc) · 1.72 KB
/
cluster.reroute.json
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
{
"cluster.reroute": {
"documentation": {
"url": "https://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-reroute.html",
"description": "Allows to manually change the allocation of individual shards in the cluster."
},
"stability": "stable",
"visibility": "public",
"headers": {
"accept": ["application/json"],
"content_type": ["application/json"]
},
"url": {
"paths": [
{
"path": "/_cluster/reroute",
"methods": ["POST"]
}
]
},
"params": {
"dry_run": {
"type": "boolean",
"description": "Simulate the operation only and return the resulting state"
},
"explain": {
"type": "boolean",
"description": "Return an explanation of why the commands can or cannot be executed"
},
"retry_failed": {
"type": "boolean",
"description": "Retries allocation of shards that are blocked due to too many subsequent allocation failures"
},
"metric": {
"type": "list",
"options": [
"_all",
"blocks",
"metadata",
"nodes",
"none",
"routing_table",
"master_node",
"version"
],
"description": "Limit the information returned to the specified metrics. Defaults to all but metadata"
},
"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`)"
}
}
}