Menu
Stats (GET /_stats)
Stats
GET
/_statsUse it in a workflow
- Add a step and choose the OpenSearch connector.
- Pick the Stats (GET /_stats) action (under indices).
- Fill in the fields below, then reference the result from later steps as
{{statsGetStats.response.data}}.
Request
Query parameters
Response
Returns 200 with an object. Read it in later steps with {{statsGetStats.response.data.<field>}}.
{
"_shards": {
"failed": 0,
"successful": 0,
"total": 0,
"failures": [
{
"shard": 0,
"reason": {
"type": "string",
"reason": "string",
"stack_trace": "string",
"caused_by": {},
"root_cause": [
{}
],
"suppressed": [
{}
],
"header": {}
},
"index": "string",
"node": "string"
}
],
"skipped": 0
},
"_all": {
"primaries": null,
"total": null
},
"indices": {}
}
Need more? See the OpenSearch guide for connection setup and behaviour shared by every action.
Was this page helpful?