You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to be able to determine which sites have not been scanned. While the web UI shows "not scanned" for those sites, a Nexpose::SiteSummary has nothing I can see to indicate last scans. The closest I have been able to find is the idea of listing all paused and past scans, finding their sites, and removing that from the whole list of sites. Am I missing something, or is this just not supported?
Context
I have quite a few unscanned sites that I would like to delete - too many to want to do manually.
The text was updated successfully, but these errors were encountered:
Unfortunately there isn't a native API call for this, but you can work around that by using the gem to pull the same site listing details that the UI does:
The Last Scan field returned for the data table is a timestamp in long format (like unix time) as a string, and -1 is the placeholder value for sites that don't have a last scan date.
Note that I'm using a "private" method here, which ideally should only be consumed by the gem itself, but it is accessible to any scripts using the gem.
Expected Behavior
I would like to be able to determine which sites have not been scanned. While the web UI shows "not scanned" for those sites, a Nexpose::SiteSummary has nothing I can see to indicate last scans. The closest I have been able to find is the idea of listing all paused and past scans, finding their sites, and removing that from the whole list of sites. Am I missing something, or is this just not supported?
Context
I have quite a few unscanned sites that I would like to delete - too many to want to do manually.
The text was updated successfully, but these errors were encountered: