-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] GET /_cat/snapshots incorrectly requires a repository #16648
Comments
It looks like 'repository' can be supplied as a query param for |
It's a breaking change now, so I'd deprecate it. |
I added the missing parameter to the spec in opensearch-project/opensearch-api-specification#700, so it will make its way to the documentation via opensearch-project/documentation-website#8692. |
[Catch All Triage - 1, 2, 3] |
Describe the bug
According to https://opensearch.org/docs/latest/api-reference/cat/cat-snapshots/
GET /_cat/snapshots
should return all snapshots for a repository, but there's no way to specify a repository (/_cat/snapshots/{repository}
works).Instead it returns a 400 requiring a repository name.
Either the doc is incorrect and this endpoint should not be exposed without a required repository parameter, or the code is broken for
/_cat/snapshots
.Related component
Storage:Snapshots
To Reproduce
curl ...
Expected behavior
Behave as described in https://opensearch.org/docs/latest/api-reference/cat/cat-snapshots/.
Additional Details
Vanilla 2.18 with
path.repo=/tmp/opensearch/repo
.The text was updated successfully, but these errors were encountered: