Elastic Cluster API

Cluster health, state, and statistics.

GitHub OpenAPI
Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent with a free APIs.io key — sign in with GitHub, Google or LinkedIn. No form to fill in; signing in shares your email address with us (Privacy).

Operations 38

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /_cluster/health Check overall cluster health · Get cluster health #
Ask an LLM
“Is my Elasticsearch cluster green, yellow or red right now?”
“What does the cluster-wide health check report?”
Tell an agent
Check my cluster's health.
Tell me whether the whole cluster is green.
GET /_cluster/allocation/explain Explain why a shard is unassigned · Explain the shard allocations #
Ask an LLM
“Why is one of my shards unassigned?”
“Can I see disk usage info when explaining a shard's allocation?”
Tell an agent
Explain the allocation of shard {shard} in index {index}.
Explain why the primary of shard {shard} of {index} sits on {current_node}.
POST /_cluster/allocation/explain Explain a shard allocation via request body · Explain the shard allocations #
Ask an LLM
“Can I send the shard I want explained in a POST body instead of query params?”
“Which node is a given replica shard assigned to, and why?”
Tell an agent
Explain allocation for shard {shard} of {index}, sent in the request body.
Post an allocation explain for the replica of shard {shard} in {index} on node {current_node}.
POST /_cluster/voting_config_exclusions Exclude master nodes from voting · Update voting configuration exclusions #
Ask an LLM
“How do I safely remove master-eligible nodes from the voting configuration?”
“Can I exclude voting nodes by name rather than node ID?”
Tell an agent
Add {node_names} to the voting config exclusions.
Exclude nodes with IDs {node_ids} from master voting.
DELETE /_cluster/voting_config_exclusions Clear voting config exclusions · Clear cluster voting config exclusions #
Ask an LLM
“How do I clear the voting exclusion list after a node removal?”
“Can I clear exclusions without waiting for the nodes to leave?”
Tell an agent destructive · confirm first
Clear all voting configuration exclusions.
Clear the voting exclusions without waiting for the excluded nodes to be removed.
GET /_cluster/settings Get cluster-wide settings · Get cluster-wide settings #
Ask an LLM
“What persistent and transient settings are set on my cluster?”
“Can I include default values when I read cluster settings?”
Tell an agent
Show my cluster settings.
Show cluster settings including defaults, flattened.
PUT /_cluster/settings Update cluster settings · Update the cluster settings #
Ask an LLM
“How do I change a dynamic cluster setting without a restart?”
“What's the difference between persistent and transient cluster settings updates?”
Tell an agent
Set persistent cluster settings {persistent}.
Apply transient cluster settings {transient}.
GET /_cluster/health/{index} Check health of specific indices · Get the cluster health status #
Ask an LLM
“What is the health status of one particular index or data stream?”
“Can I wait until an index reaches green status?”
Tell an agent
Check the health of {index}.
Wait until {index} reaches {wait_for_status} health.
GET /_info/{target} Get cluster info for a target · Get cluster info #
Ask an LLM
“Which cluster info targets like http or ingest can I retrieve?”
“Can I get ingest or script stats via the cluster info endpoint?”
Tell an agent
Get cluster info for target {target}.
Show {target} info for my cluster.
GET /_cluster/pending_tasks List pending cluster tasks · Get the pending cluster tasks #
Ask an LLM
“Are there cluster-level changes like mapping updates waiting to be applied?”
“What is queued on the master node right now?”
Tell an agent
List pending cluster tasks.
Show the pending task queue from the local node only.
GET /_remote/info Get remote cluster information · Get remote cluster information #
Ask an LLM
“Which remote clusters is my cluster connected to?”
“Are my cross-cluster search connections up?”
Tell an agent
Show my configured remote clusters.
Check the connection status of remote clusters.
POST /_cluster/reroute Reroute shards manually · Reroute the cluster #
Ask an LLM
“How do I move a shard from one node to another by hand?”
“Can I retry shard allocations that failed too many times?”
Tell an agent
Run these reroute commands: {commands}.
Dry-run the shard reroute {commands} and explain the outcome.
GET /_cluster/state Get the full cluster state · Get the cluster state #
Ask an LLM
“What does the complete internal cluster state contain?”
“Can I wait for a specific metadata version of the cluster state?”
Tell an agent
Get the full cluster state.
Show the whole cluster state once metadata version {wait_for_metadata_version} is reached.
GET /_cluster/state/{metric} Get selected cluster state metrics · Get the cluster state #
Ask an LLM
“Can I fetch only the routing table or metadata part of cluster state?”
“Which cluster state metrics can I filter on?”
Tell an agent
Show the {metric} section of the cluster state.
Get cluster state limited to {metric}.
GET /_cluster/state/{metric}/{index} Get cluster state metrics for indices · Get the cluster state #
Ask an LLM
“Can I see cluster state metadata for just one index?”
“How do I get the routing table only for certain indices?”
Tell an agent
Show cluster state {metric} for index {index}.
Get the {metric} part of cluster state filtered to {index}.
GET /_cluster/stats Get cluster statistics · Get cluster statistics #
Ask an LLM
“How much storage and memory is my whole cluster using?”
“Can cluster stats include remote clusters?”
Tell an agent
Show my cluster statistics.
Get cluster stats including remote clusters.
GET /_cluster/stats/nodes/{node_id} Get cluster statistics for nodes · Get cluster statistics #
Ask an LLM
“Can I restrict cluster statistics to a subset of nodes?”
“What shard counts and store size do certain nodes contribute?”
Tell an agent
Get cluster stats for nodes {node_id}.
Summarize cluster statistics only from node {node_id}.
HEAD / Ping the cluster · Ping the cluster #
Ask an LLM
“Is my Elasticsearch cluster up and responding?”
“Can I do a lightweight HEAD check against the cluster root?”
Tell an agent
Ping my cluster.
Check if the cluster is reachable.
DELETE /_nodes/{node_id}/_repositories_metering/{max_archive_version} Clear archived repository metering · Clear the archived repositories metering #
Ask an LLM
“How do I purge old repositories metering archives on a node?”
“Can I clear metering archives up to a certain version?”
Tell an agent destructive · confirm first
Clear repositories metering archives on {node_id} up to version {max_archive_version}.
Delete archived metering data through version {max_archive_version} for nodes {node_id}.
GET /_nodes/{node_id}/_repositories_metering Get repository metering info · Get cluster repositories metering #
Ask an LLM
“How many requests have my snapshot repositories made per node?”
“Where can I see repository usage counters for billing?”
Tell an agent
Show repositories metering for nodes {node_id}.
Get snapshot repository request counts on {node_id}.
GET /_nodes/hot_threads Get hot threads on all nodes · Get the hot threads for nodes #
Ask an LLM
“Which threads are burning CPU across my cluster?”
“Can I sample hot threads by wait or block type instead of CPU?”
Tell an agent
Show hot threads on every node.
Show the top {threads} hot threads of type {type} cluster-wide.
GET /_nodes/{node_id}/hot_threads Get hot threads on specific nodes · Get the hot threads for nodes #
Ask an LLM
“What is making one particular node busy?”
“Can I ignore idle threads when sampling a node?”
Tell an agent
Show hot threads on node {node_id}.
Sample hot threads on {node_id} over interval {interval}.
GET /_nodes Get info on all nodes · Get node information #
Ask an LLM
“What versions and roles are my cluster's nodes running?”
“Can I list every node's settings and attributes?”
Tell an agent
Show info for all nodes.
List node info cluster-wide with flat settings.
GET /_nodes/{node_id} Get info on specific nodes · Get node information #
Ask an LLM
“What are the attributes and settings of a single node?”
“Which plugins are installed on a certain node?”
Tell an agent
Show node info for {node_id}.
Get all node details for {node_id}.
GET /_nodes/{metric} Get a node info metric for all nodes · Get node information #
Ask an LLM
“Can I fetch only the jvm or os info across all nodes?”
“Which node info metrics are available cluster-wide?”
Tell an agent
Report only the {metric} section of node info for the whole cluster.
Get only the {metric} node info across the cluster.
GET /_nodes/{node_id}/{metric} Get a node info metric for specific nodes · Get node information #
Ask an LLM
“Can I see just the thread pool info for one node?”
“What JVM info does a specific node report?”
Tell an agent
Narrow node {node_id}'s info down to the {metric} section.
Get node {node_id}'s {metric} details.
POST /_nodes/reload_secure_settings Reload keystore on all nodes · Reload the keystore on nodes in the cluster #
Ask an LLM
“How do I apply updated keystore secrets without restarting nodes?”
“Do I need a keystore password to reload secure settings?”
Tell an agent
Reload secure settings on every node.
Reload the keystore cluster-wide with password {secure_settings_password}.
POST /_nodes/{node_id}/reload_secure_settings Reload keystore on specific nodes · Reload the keystore on nodes in the cluster #
Ask an LLM
“Can I reload secure settings on only some nodes?”
“Which reloadable secure settings take effect on a single node?”
Tell an agent
Reload secure settings on node {node_id}.
Reload {node_id}'s keystore using password {secure_settings_password}.
GET /_nodes/stats Get statistics for all nodes · Get node statistics #
Ask an LLM
“What are the JVM, indexing and search stats on every node?”
“Can I include segment file sizes in node statistics?”
Tell an agent
Show node stats for all nodes.
Get node stats cluster-wide at {level} level.
GET /_nodes/{node_id}/stats Get statistics for specific nodes · Get node statistics #
Ask an LLM
“How is a particular node performing right now?”
“Can I get fielddata usage for one node's fields?”
Tell an agent
Show stats for node {node_id}.
Get node {node_id}'s stats including fielddata for {fielddata_fields}.
GET /_nodes/stats/{metric} Get a node stats metric for all nodes · Get node statistics #
Ask an LLM
“Can I fetch only JVM or breaker stats across all nodes?”
“Which node stats metric groups can I filter to?”
Tell an agent
Show {metric} stats for all nodes.
Get just the {metric} node statistics cluster-wide.
GET /_nodes/{node_id}/stats/{metric} Get a node stats metric for specific nodes · Get node statistics #
Ask an LLM
“What does a node's thread pool or OS stat look like?”
“Can I check one node's circuit breaker stats only?”
Tell an agent
Narrow node {node_id}'s statistics to the {metric} group.
Get node {node_id}'s {metric} statistics only.
GET /_nodes/stats/{metric}/{index_metric} Get index-level node stats for all nodes · Get node statistics #
Ask an LLM
“Can I see per-node search or indexing index stats across the cluster?”
“Which index metrics can I break down under node stats?”
Tell an agent
Show {metric} node stats narrowed to index metric {index_metric}.
Get the {index_metric} index stats across all nodes under {metric}.
GET /_nodes/{node_id}/stats/{metric}/{index_metric} Get index-level node stats for specific nodes · Get node statistics #
Ask an LLM
“How much query cache is one node using?”
“Can I see a single node's segment stats only?”
Tell an agent
Show {index_metric} index stats on node {node_id} under {metric}.
For node {node_id}, get {metric} stats limited to index metric {index_metric}.
GET /_nodes/usage Get feature usage for all nodes · Get feature usage information #
Ask an LLM
“Which REST actions have my nodes been serving most?”
“How often is each feature used across the cluster?”
Tell an agent
Show feature usage for all nodes.
Get REST action usage counts cluster-wide.
GET /_nodes/{node_id}/usage Get feature usage for specific nodes · Get feature usage information #
Ask an LLM
“Which REST endpoints has one node handled?”
“Can I see feature usage counters for a single node?”
Tell an agent
Show feature usage on node {node_id}.
Get REST action counts for {node_id}.
GET /_nodes/usage/{metric} Get a usage metric for all nodes · Get feature usage information #
Ask an LLM
“Can I limit usage info to rest_actions or aggregations?”
“What aggregation usage do my nodes report?”
Tell an agent
Show {metric} usage for all nodes.
Get only the {metric} usage counters cluster-wide.
GET /_nodes/{node_id}/usage/{metric} Get a usage metric for specific nodes · Get feature usage information #
Ask an LLM
“What aggregation usage has a particular node recorded?”
“Can I narrow one node's usage report to a single metric?”
Tell an agent
Show {metric} usage on node {node_id}.
Get node {node_id}'s {metric} usage counters.

Work with this as data

Every API 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 apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • 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.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/elastic:elastic-cluster-api"
All apis
curl "https://apis.io/api/v1/apis?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.

OpenAPI Specification

elastic-cluster-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Elastic Cluster API
  version: '1.0'
  description: 'Operations tagged Cluster across 2 of this provider''s published API definitions: elastic-elasticsearch-openapi.yml, elasticsearch.json. Each path carries the servers of the definition it was published in.'
servers:
- url: https://{deployment}.es.{region}.cloud.es.io:9243
  description: Elastic Cloud deployment
  variables:
    deployment:
      default: my-deployment
      description: Deployment identifier
    region:
      default: us-east-1
      description: Cloud region
- url: http://localhost:9200
  description: Local Elasticsearch
tags:


# --- truncated at 32 KB (373 KB total) ---
# Full source: https://artifacts.apis.io/elastic/openapi/elastic-cluster-api-openapi.yml