Menu
Search shards (GET /_search_shards)
Search shards
GET
/_search_shardsUse it in a workflow
- Add a step and choose the OpenSearch connector.
- Pick the Search shards (GET /_search_shards) action (under core).
- Fill in the fields below, then reference the result from later steps as
{{searchShardsGetSearchShards.response.data}}.
Request
Query parameters
Response
Returns 200 with an object. Read it in later steps with {{searchShardsGetSearchShards.response.data.<field>}}.
{
"nodes": {},
"shards": [
[
{
"state": "INITIALIZING",
"primary": false,
"shard": 0,
"index": "string",
"node": "string",
"searchOnly": false,
"allocation_id": {},
"recovery_source": {},
"unassigned_info": {
"at": null,
"reason": "ALLOCATION_FAILED",
"last_allocation_status": "string",
"details": "string",
"failed_allocation_attempts": 0,
"delayed": false,
"allocation_status": "string"
},
"relocating_node": null
}
]
],
"indices": {}
}
Need more? See the OpenSearch guide for connection setup and behaviour shared by every action.
Was this page helpful?