Get information about the nodes in a cluster. IMPORTANT: cat APIs are only intended for human consumption using the command line or Kibana console. They are not intended for use by applications. For application consumption, use the nodes info API. ##Required authorization
- Cluster privileges:
monitor
Query parameters
-
The unit used to display byte values.
Values are
b,kb,mb,gb,tb, orpb. -
If
true, return the full node ID. Iffalse, return the shortened node ID. -
If true, the response includes information from segments that are not loaded into memory.
-
A comma-separated list of columns names to display. It supports simple wildcards.
-
A comma-separated list of column names or aliases that determines the sort order. Sorting defaults to ascending and can be changed by setting
:ascor:descas a suffix to the column name. -
The period to wait for a connection to the master node.
Values are
-1or0. -
The unit used to display time values.
Values are
nanos,micros,ms,s,m,h, ord.
GET _cat/nodes
curl \
--request GET 'http://api.example.com/_cat/nodes'
[
{
"ip": "127.0.0.1",
"heap.percent": "65",
"ram.percent": "99",
"cpu": "42",
"load_1m": "3.07",
"load_5m": null,
"load_15m": null,
"node.role": "cdfhilmrstw",
"master": "*",
"name": "mJw06l1"
}
]
[
{
"id": "veJR",
"ip": "127.0.0.1",
"port": "59938",
"v": "9.0.0",
"m": "*"
}
]