Elastic Snapshot API

The snapshot and restore APIs are used to take snapshots of running clusters. Snapshots are backups of individual indices or entire clusters.

GitHub OpenAPI
Business capability
Disaster Recovery & Resilience BC-4220.60

Operations 18

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

POST /_snapshot/{repository}/_cleanup Clean up a snapshot repository · Clean up the snapshot repository #
Ask an LLM
“How do I remove stale unreferenced data from a snapshot repository?”
“Can I reclaim space left by failed snapshots?”
Tell an agent destructive · confirm first
Clean up snapshot repository {repo}.
Remove unreferenced data from repository {repo}.
PUT /_snapshot/{repository}/{snapshot}/_clone/{target_snapshot} Clone a snapshot · Clone a snapshot #
Ask an LLM
“Can I copy part of a snapshot into a new snapshot in the same repo?”
“Which indices can I include when cloning a snapshot?”
Tell an agent
Clone snapshot {snap} in {repo} to {target} with indices {indices}.
Copy indices {indices} from snapshot {snap} of {repo} into {target}.
GET /_snapshot/{repository}/{snapshot} Get snapshot information · Get snapshot information #
Ask an LLM
“What indices and state does a given snapshot have?”
“Can I list snapshots filtered by SLM policy or state?”
Tell an agent
Show snapshot {snap} in repository {repo}.
Get snapshots {snap} in {repo} with state {state}.
PUT /_snapshot/{repository}/{snapshot} Create a snapshot · Create a snapshot #
Ask an LLM
“How do I back up my cluster indices to a repository?”
“Can I snapshot only certain indices and wait for it to finish?”
Tell an agent
Create snapshot {snap} in repository {repo}.
Snapshot indices {indices} into {snap} in {repo}.
POST /_snapshot/{repository}/{snapshot} Create a snapshot via POST · Create a snapshot #
Ask an LLM
“Is there a POST form for taking a snapshot?”
“Can I include global state when creating a snapshot with POST?”
Tell an agent
Take snapshot {snap} in {repo} using the POST form.
Post snapshot {snap} to {repo} including global state.
DELETE /_snapshot/{repository}/{snapshot} Delete a snapshot · Delete snapshots #
Ask an LLM
“How do I delete old snapshots from a repository?”
“Can I delete several snapshots with a wildcard?”
Tell an agent destructive · confirm first
Delete snapshot {snap} from repository {repo}.
Remove snapshots matching {snap} in {repo}.
GET /_snapshot/{repository} Get a snapshot repository · Get snapshot repository information #
Ask an LLM
“What type and settings does a specific snapshot repository have?”
“Can I read repository info from the local node only?”
Tell an agent
Show snapshot repository {repo}.
Get settings of repository {repo}.
PUT /_snapshot/{repository} Register a snapshot repository · Create or update a snapshot repository #
Ask an LLM
“How do I register a place to store snapshots?”
“Can I skip repository verification on registration?”
Tell an agent
Register snapshot repository {repo}.
Create or update repository {repo} without verifying it.
POST /_snapshot/{repository} Register a snapshot repository via POST · Create or update a snapshot repository #
Ask an LLM
“Is there a POST form for registering a snapshot repository?”
“Can I update a repository's settings with a POST call?”
Tell an agent
Register repository {repo} using the POST form.
Post an update to snapshot repository {repo}.
DELETE /_snapshot/{repository} Unregister a snapshot repository · Delete snapshot repositories #
Ask an LLM
“Does unregistering a repository delete the snapshots stored in it?”
“How do I remove a snapshot repository from the cluster?”
Tell an agent destructive · confirm first
Unregister snapshot repository {repo}.
Delete repository registration {repo}.
GET /_snapshot List snapshot repositories · Get snapshot repository information #
Ask an LLM
“What snapshot repositories are registered on my cluster?”
“Can I list repositories from the local node's state?”
Tell an agent
List all snapshot repositories.
Show every registered snapshot repository.
POST /_snapshot/{repository}/_analyze Analyze a snapshot repository · Analyze a snapshot repository #
Ask an LLM
“How can I test whether my storage behaves correctly as a snapshot repository?”
“Can I control blob count and data size in a repository analysis?”
Tell an agent
Analyze snapshot repository {repo}.
Analyze repository {repo} with {count} blobs up to {size} each.
POST /_snapshot/{repository}/_verify_integrity Verify a repository's integrity · Verify the repository integrity #
Ask an LLM
“Can I check a repository's contents for corruption?”
“Will integrity verification read blob contents too?”
Tell an agent
Verify the integrity of repository {repo}.
Check repository {repo} integrity including blob contents.
POST /_snapshot/{repository}/{snapshot}/_restore Restore a snapshot · Restore a snapshot #
Ask an LLM
“How do I restore indices from a snapshot?”
“Can I rename indices while restoring?”
Tell an agent
Restore snapshot {snap} from {repo}.
Restore indices {indices} from {snap} in {repo} renaming {pattern} to {replacement}.
GET /_snapshot/_status Get status of running snapshots · Get the snapshot status #
Ask an LLM
“Which snapshots are in progress right now?”
“How far along are my current snapshots?”
Tell an agent
Show status of all running snapshots.
Get progress of in-progress snapshots across repositories.
GET /_snapshot/{repository}/_status Get status of running snapshots in a repository · Get the snapshot status #
Ask an LLM
“What snapshots are currently running in one repository?”
“Can I check progress for a single repository's snapshots?”
Tell an agent
Show running snapshot status in repository {repo}.
Get in-progress snapshots for {repo}.
GET /_snapshot/{repository}/{snapshot}/_status Get detailed status of a snapshot · Get the snapshot status #
Ask an LLM
“What's the per-shard status of a specific snapshot?”
“How many files has a given snapshot copied?”
Tell an agent
Get detailed status of snapshot {snap} in {repo}.
Show shard progress for snapshot {snap} of repository {repo}.
POST /_snapshot/{repository}/_verify Verify a snapshot repository · Verify a snapshot repository #
Ask an LLM
“Can every node in my cluster access the snapshot repository?”
“How do I check a repository works after registering it?”
Tell an agent
Verify snapshot repository {repo}.
Check that all nodes can reach repository {repo}.

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-snapshot-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-snapshot-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Elasticsearch Snapshot API
  description: 'Elasticsearch provides REST APIs that are used by the UI components and can be called directly to configure and access Elasticsearch features.

    ## Documentation source and versions

    This documentation is derived from the main branch of the elasticsearch-specification repository. It is provided under license Attribution-NonCommercial-NoDerivatives 4.0 International.

    This documentation contains work-in-progress information for future Elastic Stack releases.'
  license:
    name: Apache 2.0
    url: https://github.com/elastic/elasticsearch-specification/blob/main/LICENSE
  version: ''
security:
- apiKeyAuth: []
- basicAuth: []
- bearerAuth: []
tags:


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