List Scan Logs

GET/flexscan-api/rest/v1/scan/logs

This API lists all scan status records for the authenticated customer, paginated and sorted by last update time.

Input parametersInput parameters

Parameter Mandatory/Optional Data Type Description
page Optional Integer Page number (1-based).
Default: 1
limit Optional Integer Items per page. Range: 1–500.
Default: 100
sort Optional String Sort field and direction.
Default: updatedAt,desc

Sample - List Scan LogsSample - List Scan Logs

API Request

curl -X GET \
  '<qualys_gateway_url>/flexscan-api/rest/v1/scan/logs?page=1&limit=100&sort=updatedAt,desc' \
  -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-projectxxxx",
      "targetAccountId": "target-accountxxxxx",
      "targetRegion": "us-west1",
      "targetZone": "us-west1-a",
      "scannerPlatform": "LINUX",
      "storageCount": 1,
      "scanPriority": 1,
      "scanAttempts": 1,
      "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": {
    "page": 1,
    "limit": 100,
    "total": 540,
    "timestamp": "2026-05-28T11:30:00Z"
  }
}