Get feature usage information Added in 6.0.0
Path parameters
-
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 -
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.
GET /_nodes/{node_id}/usage/{metric}
curl \
-X GET http://api.example.com/_nodes/{node_id}/usage/{metric}
Response examples (200)
{
"_nodes": {
"failures": [
{
"type": "string",
"reason": "string",
"stack_trace": "string",
"caused_by": {},
"root_cause": [
{}
],
"suppressed": [
{}
]
}
],
"total": 42.0,
"successful": 42.0,
"failed": 42.0
},
"cluster_name": "string",
"nodes": {
"additionalProperty1": {
"rest_actions": {
"additionalProperty1": 42.0,
"additionalProperty2": 42.0
},
"": 42.0,
"aggregations": {
"additionalProperty1": {},
"additionalProperty2": {}
}
},
"additionalProperty2": {
"rest_actions": {
"additionalProperty1": 42.0,
"additionalProperty2": 42.0
},
"": 42.0,
"aggregations": {
"additionalProperty1": {},
"additionalProperty2": {}
}
}
}
}