User story #5649
closed
Provide search methods through the API
Added by Lionel Le Folgoc about 10 years ago.
Updated about 1 year ago.
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.
- 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!
- Status changed from 8 to New
- Tracker changed from Bug to User story
- Target version set to Ideas (not version specific)
- 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.
- Status changed from New to Resolved
Also available in: Atom
PDF