gns3-server
gns3-server copied to clipboard
Enhancement: Add filter support for GET nodes request
Hi Team,
I'm using GNS3 REST API to create automation layer above it. As part of my automation I need to query nodes according to their node_type. For example: Get all qemu nodes Get all cloud nodes Get all Ethernet switch nodes etc
It would be nice it a GET request will be added to each one of the node types endpoint, or maybe to have more complex filtering query parameters available for the nodes endpoint itself.
Doron
Filter by suggestion:
- node_type
- status
- node name
- locked
I think query parameters for the /projects/{project_id}/nodes endpoint would be the way to do it.
I prepared pr here https://github.com/GNS3/gns3-server/pull/1732, unfortunately it doesn't work as expected, I would like to ask you for help
@piotrpekala7 I will review soon, thanks :+1: