List Workflows
Lists workflows with optional filters. Results are returned most-recent-first by receivedAt.
Input parametersInput parameters
| Parameter | Mandatory/Optional | Data Type | Description |
|---|---|---|---|
| status | Optional | String | Filter by workflow status: SUCCESS, FAILED, IN_PROGRESS, MAX_RETRIES_EXCEEDED (case-insensitive) |
| eventCategory | Optional | String | Filter by category: DISCOVERY, SNAPSHOT, SCAN, MANAGEMENT (case-insensitive) |
| serviceAccountId | Optional | String | Filter by service account ID |
| cloudType | Optional | String | Filter by cloud provider: AWS, AZURE, GCP, OCI (case-insensitive) |
| stepType | Optional | String | Filter by step/event type (e.g., ROOT, DISCOVER_TARGET_VMS) (case-insensitive) |
| page | Optional | Integer | Page number (1-based). Default: 1 |
| limit | Optional | Integer | Items per page. Range: 1–500. Default: 100 |
Sample - List Scan Workflows for a Service AccountSample - List Scan Workflows for a Service Account
API Request
curl -X GET \ '<qualys_gateway_url>/flexscan-api/rest/v1/audit/workflows?serviceAccountId=my-gcp-project-XXXX&eventCategory=SCAN&status=SUCCESS&page=1&limit=100' \ -H 'Authorization: Bearer <qas-jwt-token>'
API Response
{
"data": {
"workflows": [
{
"correlationId": "gcp-scan-corr-001",
"eventCategory": "SCAN",
"cloudType": "GCP",
"serviceAccountId": "my-gcp-project-123",
"status": "SUCCESS",
"totalEvents": 8,
"startedAt": "2026-05-28T10:00:00Z",
"lastEventAt": "2026-05-28T11:00:00Z"
}
],
"total": 150,
"page": 1,
"limit": 100
},
"errors": [],
"meta": {
"timestamp": "2026-05-28T11:30:00Z"
}
}