Elastic · Schema
cat.shards.ShardsRecord
SearchAnalyticsObservabilitySecurityVisualizationCloudMonitoring
Properties
| Name | Type | Description |
|---|---|---|
| index | string | The index name. |
| shard | string | The shard name. |
| prirep | string | The shard type: `primary` or `replica`. |
| state | string | The shard state. Returned values include: `INITIALIZING`: The shard is recovering from a peer shard or gateway. `RELOCATING`: The shard is relocating. `STARTED`: The shard has started. `UNASSIGNED`: T |
| docs | object | The number of documents in the shard. |
| store | object | The disk space used by the shard. |
| dataset | object | total size of dataset (including the cache for partially mounted indices) |
| ip | object | The IP address of the node. |
| id | string | The unique identifier for the node. |
| node | object | The name of node. |
| sync_id | string | The sync identifier. |
| unassigned.reason | string | The reason for the last change to the state of an unassigned shard. It does not explain why the shard is currently unassigned; use the cluster allocation explain API for that information. Returned val |
| unassigned.at | string | The time at which the shard became unassigned in Coordinated Universal Time (UTC). |
| unassigned.for | string | The time at which the shard was requested to be unassigned in Coordinated Universal Time (UTC). |
| unassigned.details | string | Additional details as to why the shard became unassigned. It does not explain why the shard is not assigned; use the cluster allocation explain API for that information. |
| recoverysource.type | string | The type of recovery source. |
| completion.size | string | The size of completion. |
| fielddata.memory_size | string | The used fielddata cache memory. |
| fielddata.evictions | string | The fielddata cache evictions. |
| query_cache.memory_size | string | The used query cache memory. |
| query_cache.evictions | string | The query cache evictions. |
| flush.total | string | The number of flushes. |
| flush.total_time | string | The time spent in flush. |
| get.current | string | The number of current get operations. |
| get.time | string | The time spent in get operations. |
| get.total | string | The number of get operations. |
| get.exists_time | string | The time spent in successful get operations. |
| get.exists_total | string | The number of successful get operations. |
| get.missing_time | string | The time spent in failed get operations. |
| get.missing_total | string | The number of failed get operations. |
| indexing.delete_current | string | The number of current deletion operations. |
| indexing.delete_time | string | The time spent in deletion operations. |
| indexing.delete_total | string | The number of delete operations. |
| indexing.index_current | string | The number of current indexing operations. |
| indexing.index_time | string | The time spent in indexing operations. |
| indexing.index_total | string | The number of indexing operations. |
| indexing.index_failed | string | The number of failed indexing operations. |
| merges.current | string | The number of current merge operations. |
| merges.current_docs | string | The number of current merging documents. |
| merges.current_size | string | The size of current merge operations. |
| merges.total | string | The number of completed merge operations. |
| merges.total_docs | string | The nuber of merged documents. |
| merges.total_size | string | The size of current merges. |
| merges.total_time | string | The time spent merging documents. |
| refresh.total | string | The total number of refreshes. |
| refresh.time | string | The time spent in refreshes. |
| refresh.external_total | string | The total nunber of external refreshes. |
| refresh.external_time | string | The time spent in external refreshes. |
| refresh.listeners | string | The number of pending refresh listeners. |
| search.fetch_current | string | The current fetch phase operations. |
| search.fetch_time | string | The time spent in fetch phase. |
| search.fetch_total | string | The total number of fetch operations. |
| search.open_contexts | string | The number of open search contexts. |
| search.query_current | string | The current query phase operations. |
| search.query_time | string | The time spent in query phase. |
| search.query_total | string | The total number of query phase operations. |
| search.scroll_current | string | The open scroll contexts. |
| search.scroll_time | string | The time scroll contexts were held open. |
| search.scroll_total | string | The number of completed scroll contexts. |
| segments.count | string | The number of segments. |
| segments.memory | string | The memory used by segments. |
| segments.index_writer_memory | string | The memory used by the index writer. |
| segments.version_map_memory | string | The memory used by the version map. |
| segments.fixed_bitset_memory | string | The memory used by fixed bit sets for nested object field types and export type filters for types referred in `_parent` fields. |
| seq_no.max | string | The maximum sequence number. |
| seq_no.local_checkpoint | string | The local checkpoint. |
| seq_no.global_checkpoint | string | The global checkpoint. |
| warmer.current | string | The number of current warmer operations. |
| warmer.total | string | The total number of warmer operations. |
| warmer.total_time | string | The time spent in warmer operations. |
| path.data | string | The shard data path. |
| path.state | string | The shard state path. |
| bulk.total_operations | string | The number of bulk shard operations. |
| bulk.total_time | string | The time spent in shard bulk operations. |
| bulk.total_size_in_bytes | string | The total size in bytes of shard bulk operations. |
| bulk.avg_time | string | The average time spent in shard bulk operations. |
| bulk.avg_size_in_bytes | string | The average size in bytes of shard bulk operations. |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://artifacts.apis.io/elastic/json-schema/elastic-cat-shards-shards-record-schema.json",
"title": "cat.shards.ShardsRecord",
"x-generated": "2026-11-10",
"x-method": "derived",
"x-generator": "derive-json-schema.py",
"x-source": "openapi/elastic-cat-api-openapi.yml#/components/schemas/cat.shards.ShardsRecord",
"type": "object",
"properties": {
"index": {
"description": "The index name.",
"type": "string"
},
"shard": {
"description": "The shard name.",
"type": "string"
},
"prirep": {
"description": "The shard type: `primary` or `replica`.",
"type": "string"
},
"state": {
"description": "The shard state.\nReturned values include:\n`INITIALIZING`: The shard is recovering from a peer shard or gateway.\n`RELOCATING`: The shard is relocating.\n`STARTED`: The shard has started.\n`UNASSIGNED`: The shard is not assigned to any node.",
"type": "string"
},
"docs": {
"description": "The number of documents in the shard.",
"oneOf": [
{
"type": "string"
},
{
"type": [
"string",
"null"
]
}
]
},
"store": {
"description": "The disk space used by the shard.",
"oneOf": [
{
"type": "string"
},
{
"type": [
"string",
"null"
]
}
]
},
"dataset": {
"description": "total size of dataset (including the cache for partially mounted indices)",
"x-state": "Generally available; Added in 8.11.0",
"oneOf": [
{
"type": "string"
},
{
"type": [
"string",
"null"
]
}
]
},
"ip": {
"description": "The IP address of the node.",
"oneOf": [
{
"type": "string"
},
{
"type": [
"string",
"null"
]
}
]
},
"id": {
"description": "The unique identifier for the node.",
"type": "string"
},
"node": {
"description": "The name of node.",
"oneOf": [
{
"type": "string"
},
{
"type": [
"string",
"null"
]
}
]
},
"sync_id": {
"description": "The sync identifier.",
"type": "string"
},
"unassigned.reason": {
"description": "The reason for the last change to the state of an unassigned shard.\nIt does not explain why the shard is currently unassigned; use the cluster allocation explain API for that information.\nReturned values include:\n`ALLOCATION_FAILED`: Unassigned as a result of a failed allocation of the shard.\n`CLUSTER_RECOVERED`: Unassigned as a result of a full cluster recovery.\n`DANGLING_INDEX_IMPORTED`: Unassigned as a result of importing a dangling index.\n`EXISTING_INDEX_RESTORED`: Unassigned as a result of restoring into a closed index.\n`FORCED_EMPTY_PRIMARY`: The shard’s allocation was last modified by forcing an empty primary using the cluster reroute API.\n`INDEX_CLOSED`: Unassigned because the index was closed.\n`INDEX_CREATED`: Unassigned as a result of an API creation of an index.\n`INDEX_REOPENED`: Unassigned as a result of opening a closed index.\n`MANUAL_ALLOCATION`: The shard’s allocation was last modified by the cluster reroute API.\n`NEW_INDEX_RESTORED`: Unassigned as a result of restoring into a new index.\n`NODE_LEFT`: Unassigned as a result of the node hosting it leaving the cluster.\n`NODE_RESTARTING`: Similar to `NODE_LEFT`, except that the node was registered as restarting using the node shutdown API.\n`PRIMARY_FAILED`: The shard was initializing as a replica, but the primary shard failed before the initialization completed.\n`REALLOCATED_REPLICA`: A better replica location is identified and causes the existing replica allocation to be cancelled.\n`REINITIALIZED`: When a shard moves from started back to initializing.\n`REPLICA_ADDED`: Unassigned as a result of explicit addition of a replica.\n`REROUTE_CANCELLED`: Unassigned as a result of explicit cancel reroute command.",
"type": "string"
},
"unassigned.at": {
"description": "The time at which the shard became unassigned in Coordinated Universal Time (UTC).",
"type": "string"
},
"unassigned.for": {
"description": "The time at which the shard was requested to be unassigned in Coordinated Universal Time (UTC).",
"type": "string"
},
"unassigned.details": {
"description": "Additional details as to why the shard became unassigned.\nIt does not explain why the shard is not assigned; use the cluster allocation explain API for that information.",
"type": "string"
},
"recoverysource.type": {
"description": "The type of recovery source.",
"type": "string"
},
"completion.size": {
"description": "The size of completion.",
"type": "string"
},
"fielddata.memory_size": {
"description": "The used fielddata cache memory.",
"type": "string"
},
"fielddata.evictions": {
"description": "The fielddata cache evictions.",
"type": "string"
},
"query_cache.memory_size": {
"description": "The used query cache memory.",
"type": "string"
},
"query_cache.evictions": {
"description": "The query cache evictions.",
"type": "string"
},
"flush.total": {
"description": "The number of flushes.",
"type": "string"
},
"flush.total_time": {
"description": "The time spent in flush.",
"type": "string"
},
"get.current": {
"description": "The number of current get operations.",
"type": "string"
},
"get.time": {
"description": "The time spent in get operations.",
"type": "string"
},
"get.total": {
"description": "The number of get operations.",
"type": "string"
},
"get.exists_time": {
"description": "The time spent in successful get operations.",
"type": "string"
},
"get.exists_total": {
"description": "The number of successful get operations.",
"type": "string"
},
"get.missing_time": {
"description": "The time spent in failed get operations.",
"type": "string"
},
"get.missing_total": {
"description": "The number of failed get operations.",
"type": "string"
},
"indexing.delete_current": {
"description": "The number of current deletion operations.",
"type": "string"
},
"indexing.delete_time": {
"description": "The time spent in deletion operations.",
"type": "string"
},
"indexing.delete_total": {
"description": "The number of delete operations.",
"type": "string"
},
"indexing.index_current": {
"description": "The number of current indexing operations.",
"type": "string"
},
"indexing.index_time": {
"description": "The time spent in indexing operations.",
"type": "string"
},
"indexing.index_total": {
"description": "The number of indexing operations.",
"type": "string"
},
"indexing.index_failed": {
"description": "The number of failed indexing operations.",
"type": "string"
},
"merges.current": {
"description": "The number of current merge operations.",
"type": "string"
},
"merges.current_docs": {
"description": "The number of current merging documents.",
"type": "string"
},
"merges.current_size": {
"description": "The size of current merge operations.",
"type": "string"
},
"merges.total": {
"description": "The number of completed merge operations.",
"type": "string"
},
"merges.total_docs": {
"description": "The nuber of merged documents.",
"type": "string"
},
"merges.total_size": {
"description": "The size of current merges.",
"type": "string"
},
"merges.total_time": {
"description": "The time spent merging documents.",
"type": "string"
},
"refresh.total": {
"description": "The total number of refreshes.",
"type": "string"
},
"refresh.time": {
"description": "The time spent in refreshes.",
"type": "string"
},
"refresh.external_total": {
"description": "The total nunber of external refreshes.",
"type": "string"
},
"refresh.external_time": {
"description": "The time spent in external refreshes.",
"type": "string"
},
"refresh.listeners": {
"description": "The number of pending refresh listeners.",
"type": "string"
},
"search.fetch_current": {
"description": "The current fetch phase operations.",
"type": "string"
},
"search.fetch_time": {
"description": "The time spent in fetch phase.",
"type": "string"
},
"search.fetch_total": {
"description": "The total number of fetch operations.",
"type": "string"
},
"search.open_contexts": {
"description": "The number of open search contexts.",
"type": "string"
},
"search.query_current": {
"description": "The current query phase operations.",
"type": "string"
},
"search.query_time": {
"description": "The time spent in query phase.",
"type": "string"
},
"search.query_total": {
"description": "The total number of query phase operations.",
"type": "string"
},
"search.scroll_current": {
"description": "The open scroll contexts.",
"type": "string"
},
"search.scroll_time": {
"description": "The time scroll contexts were held open.",
"type": "string"
},
"search.scroll_total": {
"description": "The number of completed scroll contexts.",
"type": "string"
},
"segments.count": {
"description": "The number of segments.",
"type": "string"
},
"segments.memory": {
"description": "The memory used by segments.",
"type": "string"
},
"segments.index_writer_memory": {
"description": "The memory used by the index writer.",
"type": "string"
},
"segments.version_map_memory": {
"description": "The memory used by the version map.",
"type": "string"
},
"segments.fixed_bitset_memory": {
"description": "The memory used by fixed bit sets for nested object field types and export type filters for types referred in `_parent` fields.",
"type": "string"
},
"seq_no.max": {
"description": "The maximum sequence number.",
"type": "string"
},
"seq_no.local_checkpoint": {
"description": "The local checkpoint.",
"type": "string"
},
"seq_no.global_checkpoint": {
"description": "The global checkpoint.",
"type": "string"
},
"warmer.current": {
"description": "The number of current warmer operations.",
"type": "string"
},
"warmer.total": {
"description": "The total number of warmer operations.",
"type": "string"
},
"warmer.total_time": {
"description": "The time spent in warmer operations.",
"type": "string"
},
"path.data": {
"description": "The shard data path.",
"type": "string"
},
"path.state": {
"description": "The shard state path.",
"type": "string"
},
"bulk.total_operations": {
"description": "The number of bulk shard operations.",
"type": "string"
},
"bulk.total_time": {
"description": "The time spent in shard bulk operations.",
"type": "string"
},
"bulk.total_size_in_bytes": {
"description": "The total size in bytes of shard bulk operations.",
"type": "string"
},
"bulk.avg_time": {
"description": "The average time spent in shard bulk operations.",
"type": "string"
},
"bulk.avg_size_in_bytes": {
"description": "The average size in bytes of shard bulk operations.",
"type": "string"
}
}
}
Work with this as data
Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.
MCP server
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
Tools for schemas
4 MCP tools reach this
find_json_schemasBrowse and filter every JSON Schema in the catalog.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.
Call it yourself
curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/elastic-cat-shards-shards-record"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.