Add 'state' query param to GET snapshots API (#128635)

This change introduces a new optional 'state' query parameter for the Get Snapshots API,
allowing users to filter snapshots by state.  The parameter accepts comma-separated
values for states: SUCCESS, IN_PROGRESS, FAILED, PARTIAL, INCOMPATIBLE (case-insensitive).

A new 'snapshots.get.state_parameter' NodeFeature has been added with this change.
The new state query parameter will only be supported in clusters where all nodes support
this feature.

---------

Co-authored-by: Elena Stoeva <elenastoeva99@gmail.com>
This commit is contained in:
Jeremy Dahlgren 2025-06-16 17:07:39 -04:00 committed by GitHub
parent 217275c229
commit d43198ea3e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
14 changed files with 293 additions and 8 deletions

View file

@ -425,6 +425,7 @@ module org.elasticsearch.server {
org.elasticsearch.action.bulk.BulkFeatures,
org.elasticsearch.features.InfrastructureFeatures,
org.elasticsearch.rest.action.admin.cluster.ClusterRerouteFeatures,
org.elasticsearch.rest.action.admin.cluster.GetSnapshotsFeatures,
org.elasticsearch.index.mapper.MapperFeatures,
org.elasticsearch.index.IndexFeatures,
org.elasticsearch.search.SearchFeatures,