gns3-server icon indicating copy to clipboard operation
gns3-server copied to clipboard

Enhancement: Add filter support for GET nodes request

Open doronbl opened this issue 6 years ago • 4 comments

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

doronbl avatar Apr 23 '19 22:04 doronbl

Filter by suggestion:

  • node_type
  • status
  • node name
  • locked

ziajka avatar Mar 11 '20 10:03 ziajka

I think query parameters for the /projects/{project_id}/nodes endpoint would be the way to do it.

grossmj avatar Mar 12 '20 05:03 grossmj

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 avatar Apr 03 '20 13:04 piotrpekala7

@piotrpekala7 I will review soon, thanks :+1:

grossmj avatar Apr 03 '20 14:04 grossmj