Qualys tagging by DNS hostname, via Asset Group, is broken (CRM#). I see a Groovy tagging example which could work around this issue:
def hostnameArray = ["host1.domain.com","host2.domain.com","host3.domain.com",]
def name = asset.name.toLowerCase()
From what I've read, using map.containsKey() might scale better, however either method puts the hostname list in the script. For hostname list maintainability, I would rather check against a Qualys maintained list, like Asset Group, which supports User/Activity Log change tracking.
I see no documentation on the Qualys supported Groovy classes/methods in documentation or community, and most community Groovy threads end unanswered with customers asking for a Qualys Groovy library guide. Does anyone know if it's possible to access Asset Groups?
### nonworking code, for example / pseudo code
return new AssetGroup('MyGroup').names.contains(asset.name.toLowerCase())
I've not used Groovy before, is there some way to learn the available classes/methods with metaClass.properties and the Tag Edit/"Test Applicability" feature? Or is there a way to obtain the Java .jar and deconstruct to learn the implemented libraries?