Skip to main content
GET
/
projects
/
{projectId}
/
scans
/
{scanId}
/
violations
Get policy violations for a scan
curl --request GET \
  --url https://api-eu.cybedefend.com/projects/{projectId}/scans/{scanId}/violations
{
  "violations": [
    {
      "id": "550e8400-e29b-41d4-a716-446655440000",
      "policyId": "550e8400-e29b-41d4-a716-446655440001",
      "projectId": "550e8400-e29b-41d4-a716-446655440002",
      "scanId": "550e8400-e29b-41d4-a716-446655440003",
      "organizationId": "550e8400-e29b-41d4-a716-446655440004",
      "actionTaken": "BLOCK",
      "affectedVulnerabilitiesCount": 12,
      "rule": {
        "id": "<string>",
        "name": "<string>",
        "type": "<string>",
        "action": "<string>",
        "description": "<string>",
        "value": {},
        "operator": "<string>",
        "criteria": [
          {
            "id": "<string>",
            "name": "<string>",
            "type": "<string>",
            "description": "<string>",
            "value": {},
            "operator": "<string>"
          }
        ]
      },
      "createdAt": "2024-01-15T10:30:00Z",
      "updatedAt": "2024-01-15T10:30:00Z",
      "affectedVulnerabilities": [
        {
          "id": "<string>",
          "name": "<string>",
          "severity": "<string>",
          "vulnerabilityType": "<string>",
          "cvssScore": 123,
          "cwe": [
            "<string>"
          ],
          "owaspTop10": [
            "<string>"
          ],
          "filePath": "<string>",
          "startLine": 123,
          "endLine": 123,
          "branch": "<string>",
          "packageName": "<string>",
          "packageVersion": "<string>",
          "artifactName": "<string>"
        }
      ]
    }
  ],
  "total": 10,
  "page": 1,
  "limit": 50
}

Path Parameters

projectId
string<uuid>
required
scanId
string<uuid>
required

Query Parameters

page
number
limit
number

Response

200 - application/json

List of violations

violations
object[]
required

List of violations

total
number
required

Total count

Example:

10

page
number
required

Current page

Example:

1

limit
number
required

Page size

Example:

50