A comma-separated list of columns names to display. It supports simple wildcards.
Supported values include:
node: The node name.id (or id, nodeId): The unique node ID.pid (or p): The process ID.host (or h): The host name.ip (or i): The IP address.port (or po): The bound transport port.attr (or attr.name): The attribute description.value (or attr.value): The attribute value.Values are node, id, nodeId, pid, p, host, h, ip, i, port, po, attr, attr.name, value, or attr.value.
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.
If true, the request computes the list of selected nodes from the
local cluster state. If false 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.
Period to wait for a connection to the master node.
GET /_cat/nodeattrs?v=true&format=json
resp = client.cat.nodeattrs(
v=True,
format="json",
)
const response = await client.cat.nodeattrs({
v: "true",
format: "json",
});
response = client.cat.nodeattrs(
v: "true",
format: "json"
)
$resp = $client->cat()->nodeattrs([
"v" => "true",
"format" => "json",
]);
curl -X GET -H "Authorization: ApiKey $ELASTIC_API_KEY" "$ELASTICSEARCH_URL/_cat/nodeattrs?v=true&format=json"
[
{
"node": "node-0",
"host": "127.0.0.1",
"ip": "127.0.0.1",
"attr": "testattr",
"value": "test"
}
]
[
{
"name": "node-0",
"pid": "19566",
"attr": "testattr",
"value": "test"
}
]