Networking device field in devices API callCompleted
I'm doing some work involving pulling the names of all the networking devices we have in Device42 using the API. Currently, I am using /api/1.0/devices/all and using a regex to parse out the networking devices by following our naming conventions. In Device42, the option exists to specify a device as a Network Device. So, would it be possible to add Network Device as a boolean field to the API response for /api/1.0/devices/all? This way, any devices that might not fit the naming convention in the regex can still be captured since that field would be initialized as true.
You can achieve it using is_it_switch filter. Pass that as yes and it will filter out networking devices.
Please sign in to leave a comment.