2 of 2 people found this helpful
I would probably run a query via the REST/API to check for a currently-running scan with a specific "label".
A query such as this:
search DiscoveryRun where __inprogress defined and not _consolidation_source defined and label = "MYSCAN"
order by starttime desc
show starttime as 'Start Time', done * 100 / total as 'Percent Complete', scan_level, user, label, key, id(#) as nodeid
Then, you have the nodeid and the key of the DiscoveryRun. (maybe you don't need them though... not sure what you are doing).
If you want to see Scheduled runs:
1 of 1 people found this helpful
You can use REST endpoint GET /discovery/runs. From the appliance UI click the help menu [the (?) icon at the top] and then REST API, then "show/hide" against "discovery".
Or directly go to:
Get details of all currently processing discovery runs."
The data returned for each run in progress includes the label.