Get feature usage information
Generally available; Added in 6.0.0
Required authorization
- Cluster privileges:
monitor
,manage
Path parameters
-
node_id
string | array[string] Required A comma-separated list of node IDs or names to limit the returned information; use
_local
to return information from the node you're connecting to, leave empty to get information from all nodes -
metric
string | array[string] Required Limits the information returned to the specific metrics. A comma-separated list of the following options:
_all
,rest_actions
.
Query parameters
-
timeout
string Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.
Values are
-1
or0
.
GET
/_nodes/{node_id}/usage/{metric}
Console
GET _nodes/usage
resp = client.nodes.usage()
const response = await client.nodes.usage();
response = client.nodes.usage
$resp = $client->nodes()->usage();
curl -X GET -H "Authorization: ApiKey $ELASTIC_API_KEY" "$ELASTICSEARCH_URL/_nodes/usage"