Get Scan Logs
This API retrieves a single scan log record by its UUID. Use includeDetails=true to include internal diagnostic fields.
Input parametersInput parameters
| Parameter | Mandatory/Optional | Data Type | Description |
|---|---|---|---|
| scanUuid | Mandatory | UUID (path) | Scan record UUID (primary key) |
| includeDetails | Optional | Boolean | Include resultFileName and correlationIds in the response. Default: false |
Sample - Get Scan Logs without DetailsSample - Get Scan Logs without Details
API Request
curl -X GET \ '<qualys_gateway_url>/flexscan-api/rest/v1/scan/logs/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx' \ -H 'Authorization: Bearer <qas-jwt-token>'
API Response
{
"data": {
"scanUuid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"cloudType": "GCP",
"resourceId": "projects/my-project/zones/us-west1-a/instances/my-vm",
"resourceName": "my-vm",
"resourceType": "VM",
"customerUuid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"portalUuid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"serviceAccountId": "my-gcp-project-XXX",
"targetAccountId": "target-account-XXXXX",
"targetRegion": "us-west1",
"targetZone": "us-west1-a",
"scannerPlatform": "LINUX",
"storageCount": 1,
"scanPriority": 1,
"scanAttempts": 2,
"scanType": "OS",
"scanStatus": "COMPLETED",
"expiresAt": "2026-06-04T11:30:00",
"stateReason": null,
"createdAt": "2026-05-28T10:00:00",
"updatedAt": "2026-05-28T11:30:00"
},
"errors": [],
"meta": {
"timestamp": "2026-05-28T11:30:00Z"
}
}
Sample - Get Scan Logs with DetailsSample - Get Scan Logs with Details
API Request
curl -X GET \ '<qualys_gateway_url>/flexscan-api/rest/v1/scan/logs/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx?includeDetails=true' \ -H 'Authorization: Bearer <qas-jwt-token>'
API Response
{
"data": {
"scanUuid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"... (all fields from above) ...",
"resultFileName": "GCP/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/my-gcp-project-XXX/f184d531-ScanResult.json",
"correlationIds": "[\"corr-001\",\"corr-002\"]"
},
"errors": [],
"meta": {
"timestamp": "2026-05-28T11:30:00Z"
}
}