-
Notifications
You must be signed in to change notification settings - Fork 24.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
Return existing system indices from GET features API #86307
Comments
Pinging @elastic/es-core-infra (Team:Core/Infra) |
I raised this issue in a team meeting. One point from the discussion is that a potential downside of exposing the index names through an API like this is that the information becomes part of our backwards-compatible API contract, and users might reasonably assume that they can use this information in applications, even though we intend for it to be an "implementation detail." We had a suggestion that a _cat API might be a more appropriate place to expose information that we intend to be purely diagnostic. The output would probably be an "identifier" per line, with "index/alias/datastream" and associated feature as fields in the row, sorted by feature. |
Hello! We are currently using elasticsearch as our school projects. But we are kind of confused about where we should modify the codes. Could you help us with the file path of where we could write this feature? |
Based on William's comment closing this issue. |
@williamrandolph @rdnm is there any plan to do something about this with the _cat API? It's still a pain to identify which index is part of a feature state during restore. These system indices / data streams need to be restored via the |
The
GET /_features
API currently returns minimal information about which features are present in the cluster: just a name and a text description. For example:A user may want to know which existing indices in particular will be included in a snapshot for a feature. Additionally, having an endpoint that associates system indices, associated indices, and system data streams with their respective features may be diagnostically useful.
It would be simple to return a structure like this:
Since this could potentially be a lot of data for a human to read, we could put it behind a
verbose
request flag, or we could add a{feature}
element to the path to return results for a particular feature.We would also make sure that this is not a problem from a security perspective.
Relates #50251 (comment)
The text was updated successfully, but these errors were encountered: