Query parameters
- bytes
string The unit used to display byte values.
Values are
b
,kb
,mb
,gb
,tb
, orpb
. - h
string | array[string] List of columns to appear in the response. Supports simple wildcards.
- s
string | array[string] List of columns that determine how the table should be sorted. Sorting defaults to ascending and can be changed by setting
:asc
or:desc
as a suffix to the column name. - local
boolean If
true
, the request computes the list of selected nodes from the local cluster state. Iffalse
the list of selected nodes are computed from the cluster state of the master node. In both cases the coordinating node will send requests for further information to each selected node. - master_timeout
string Period to wait for a connection to the master node.
Values are
-1
or0
.
GET /_cat/allocation
Console
GET /_cat/allocation?v=true&format=json
curl \
--request GET 'http://api.example.com/_cat/allocation' \
--header "Authorization: $API_KEY"
Response examples (200)
A successful response from `GET /_cat/allocation?v=true&format=json`. It shows a single shard is allocated to the one node available.
[
{
"shards": "1",
"shards.undesired": "0",
"write_load.forecast": "0.0",
"disk.indices.forecast": "260b",
"disk.indices": "260b",
"disk.used": "47.3gb",
"disk.avail": "43.4gb",
"disk.total": "100.7gb",
"disk.percent": "46",
"host": "127.0.0.1",
"ip": "127.0.0.1",
"node": "CSUXak2",
"node.role": "himrst"
}
]