Skip to content

Add Snapshots endpoint for retrieving all snapshots #41210

@cjcenizal

Description

@cjcenizal

Per discussion with @ywelsch, the internal requests currently only support a single repo, but could be extended to multiple repositories. This will also require adaptions to the response objects (so that it is clear from which repo the response is coming from). Note that it's technically possible for the same snapshot to belong to multiple repositories.

This is related to #15151, which added support for wildcards.

Some background behind this. The ES UI team is building a Snapshot and Restore app which surfaces a table of all snapshots, with the related repository. Currently, this requires retrieving all repositories, looping over them, and sending a request to retrieve all snapshots for each repository.

image

In addition to providing information about which repository a snapshot belongs to, the endpoint should also return a collection of any errors that repositories respond with, associated with the name of the repository.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions