User story #5649
closedProvide search methods through the API
Description
Hi,
That would be great if the REST API could provide some search functions, for example hostname/ip search.
Right now it's a bit cumbersome to do that with the API: create a group with the searched hostname as regex, force group refresh, list nodes from the group and delete the group. Especially since two or three of these actions trigger a full policy regeneration...
Thanks.
Updated by Matthieu CERDA about 10 years ago
- Category set to API
- Status changed from New to 8
- Assignee set to François ARMAND
- Priority changed from N/A to 2
Looks like a good and useful use case to me too.
Giving this to FAR for evaluation :)
Thanks Lionel!
Updated by Benoît PECCATTE over 8 years ago
- Tracker changed from Bug to User story
- Target version set to Ideas (not version specific)
Updated by François ARMAND almost 7 years ago
- Assignee deleted (
François ARMAND)
You now (since 3.1 at least) have the possibility to get the full list of nodes with more fine grained level of details. With that and a post-processing with grep/jq, you can reach your goal.
Perhaps we could also open the quicksearh api for public use.
Updated by François ARMAND about 1 year ago
- Regression set to No
This is now (at least 7.0) supported, you can search on the list of nodes: https://docs.rudder.io/api/v/17/#tag/Nodes/operation/listAcceptedNodes