Forum Discussion
You could script this. The SDK won’t help you though because they didn’t build in the PATCH/PUT operations for netscans. However, they exist in the API (even though they are undocumented).
Your script would prompt you for the device you want to delete.
Then it would use your input to delete the specified device by IP address.
Then it would do a GET on /setting/netscans/{netscanId} (do a GET on /setting/netscans to find the ID, which won’t be changing).
Then it would modify the “exclude” property of the response payload body, adding “,{deleted_device’s_ip_address}” to the end.
Then it would PUT that payload onto /setting/netscans/{netscanId}.
If none of that makes sense, that’s ok, working with the API isn’t beginner level stuff. You could contract someone to do it or engage LM pro services.
Related Content
- 4 years ago
- 4 years ago