Skip to content

Get Snapshot API: Listing all snapshots across all repositories does not work #75997

Closed
@spinscale

Description

@spinscale

Elasticsearch version (bin/elasticsearch --version): 7.13.4

Description of the problem including expected versus actual behavior:

The documentation for the GET Snapshot API states for its path parameters:

GET /_snapshot/<repository>/<snapshot>

<repository>
(Required, string) Snapshot repository name used to limit the request.

To get information about all snapshot repositories registered in the cluster, omit this parameter or use * or _all.

<snapshot>
(Required, string) Comma-separated list of snapshot names to retrieve. Also accepts wildcards (*).

To get information about all snapshots in a registered repository, use a wildcard (*) or _all.

However trying to retrieve all snapshots from all repositories does not work.

Steps to reproduce:

GET _snapshot/_all/_all

returns

{
  "error" : {
    "root_cause" : [
      {
        "type" : "repository_missing_exception",
        "reason" : "[_all] missing"
      }
    ],
    "type" : "repository_missing_exception",
    "reason" : "[_all] missing"
  },
  "status" : 404
}

Either this is a bug, or maybe the documentation needs to state that this is not supported.

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions