Is there a way to modify the network sonar discovery scope (add ip addresses for instance) leveraging the api? directly via sql?
No, the API does not provide a method to modify an existing discovery profile. In theory you could do it via SQL, but this is not documented or supported.
Anyone know what table the discovery scopes are stored in? I'd like to try an update via sql, but can't seem to find the table.
It's in the DiscoveryProfiles table in a field called "PluginConfigurations", which an XML string with the profile settings.
tdanner, are there plans to expose these settings to the API?
No current plans. What kind of modifications to existing do you want to make programmatically?
For context - I see the primary use case for the discovery API being to generate a one-shot discovery profile from a script.
I'm trying to find the best way to make sure devices in my CMDB are added to NPM. Network Discovery streamlines a lot of the steps of adding a device. I want to add new node names or subnets to existing discovery jobs to make sure I don't miss something. The API can't even show what current subnets are being discovered unless the details were part of the Name or Description of the Discovery Profile.
@cr41g You've had success inserting new rows in this table to initiate discovery?