The plugin configuration supports the following optional settings:

Usage

CLI Commands

info

Returns plugin metadata:

./qualys-totalcloud-plugin info

schema

Returns JSON schema for configuration validation:

./qualys-totalcloud-plugin schema

uischema

Returns UI schema for form rendering:

./qualys-totalcloud-plugin uischema

test

Verifies connectivity and validates credentials:

echo '{"config":{"username":"...","password":"...","gatewayUrl":"https://gateway.qg3.apps.qualys.com"}}' | ./qualys-totalcloud-plugin test

scan

Discovers and returns cryptographic assets from all configured cloud connectors:

echo '{"config":{"username":"...","password":"...","gatewayUrl":"https://gateway.qg3.apps.qualys.com"}}' | ./qualys-totalcloud-plugin scan

Returns JSON array of crypto asset scan results with URNs, types, URLs, and cloud-specific metadata.

Incremental Scanning

The plugin supports time-precise incremental scanning using Qualys's relative time filter syntax.

How it works:

  1. Initial Scan: Processes all crypto assets, returns state with lastScanDate timestamp (RFC 3339 format)
  2. State Persistence: Plugin runner saves state for next scheduled scan
  3. Incremental Scan: Calculates time since last scan, applies filters:
    • Inventory API: updated: [now-5m ... now] (filters resources updated in last 5 minutes)
    • Evaluations API: evaluatedOn: [now-5m ... now] (filters resources evaluated in last 5 minutes)
  4. Automatic Time Calculation: Converts elapsed time to Qualys syntax:
    • < 60 minutes: now-5m (minutes)
    • < 24 hours: now-3h (hours)
    • ≥ 24 hours: now-2d (days)

Example State Flow:

// First scan - no state
{"config": {...}}

// Plugin returns state
{"result_type": "state", "data": {"lastScanDate": "2026-02-18T13:00:50-05:00"}}

// Next scan - with state (5 minutes later)
{"config": {...}, "state": {"lastScanDate": "2026-02-18T13:00:50-05:00"}}

// Plugin applies filter: updated: [now-5m ... now]
// Only returns resources changed in last 5 minutes

State management is automatic. First scan without state performs full discovery.

Important Note on Qualys Re-Evaluation Schedule:

Incremental scan result counts depend on Qualys's own evaluation schedule, not just resource changes:

  • If Qualys re-evaluates resources: All re-evaluated resources will match the time filter and be returned, even if the resources themselves haven't changed
  • If no re-evaluation occurs: Only truly changed resources are returned
  • Full result sets are normal: If Qualys runs a full compliance evaluation between your scans, the incremental scan will return the full inventory

The plugin's incremental filtering is working correctly when it returns all resources—it means Qualys re-evaluated those resources within your filter window. This is Qualys's compliance scanning behavior, not a plugin limitation.