-
Notifications
You must be signed in to change notification settings - Fork 4
QualysReportTemplateProcessor
Ian Glennon edited this page Jun 7, 2023
·
1 revision
Convert a Scan Report Template from its XML format into a URL/payload, excluding the FQDN, with which to recreate the template in a new subscription
Parameters:
scantemplate: A document of type xml.etree.ElementTree.Element containing the XML data which defines
the report template
Returns:
None If errors are encountered during the conversion
OR
url,payload:
> url The URL, excluding the FQDN, of an API call to create a new Scan Template
> payload The payload to use in the API call
Get all Map Report Templates from a subscription
Parameters:
source_api: An object of class QualysAPI
Returns:
maptemplates: A document of type xml.etree.ElementTree.Element containing the full API response
Get all PCI Report Templates from a subscription
Parameters:
source_api: An object of class QualysAPI
Returns:
pcitemplates: A document of type xml.etree.ElementTree.Element containing the full API response
Get all Patch Report Templates from a subscription
Parameters:
source_api: An object of class QualysAPI
Returns:
patchtemplates: A document of type xml.etree.ElementTree.Element containing the full API response
Get all Report Templates from a subscription
Parameters:
source_api: An object of class QualysAPI
Returns
templates: A python dictionary containing the keys ‘scan’, ‘pci’, ‘patch’, and ‘map’ where the values
of each are return values from getScanReportTemplates(), getPCIReportTemplates(),
getPatchReportTemplates() and getMapReportTemplates() respectively
Get all Scan Report Templates from a subscription.
Parameters:
source_api: An object of class QualysAPI
Returns:
scantemplates: A document of type xml.etree.ElementTree.Element containing the full API response