Skip to main content
GET
/
project
/
{projectId}
/
results
/
iac
/
grouped
Get IAC vulnerabilities grouped by rule ID
curl --request GET \
  --url https://api-eu.cybedefend.com/project/{projectId}/results/iac/grouped \
  --header 'x-api-key: <api-key>'
{
  "projectId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "projectName": "my-project",
  "page": 1,
  "limit": 10,
  "totalPages": 5,
  "sort": "occurrenceCount",
  "order": "DESC",
  "severity": [
    "<string>"
  ],
  "status": [
    "<string>"
  ],
  "priority": [
    "<string>"
  ],
  "groupedVulnerabilities": [
    {
      "ruleId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "occurrenceCount": 5,
      "severityBreakdown": {
        "critical": 5,
        "high": 10,
        "medium": 20,
        "low": 15
      },
      "highestSeverity": "critical",
      "language": "javascript",
      "occurrences": [
        {
          "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
          "path": "src/controllers/user.ts",
          "vulnerableStartLine": 42,
          "vulnerableEndLine": 50,
          "currentState": "to_verify",
          "currentSeverity": "high",
          "currentPriority": "urgent",
          "createdAt": "<string>",
          "autofixRecords": [
            "<string>"
          ]
        }
      ],
      "hasAutofix": true,
      "firstSeen": "<string>",
      "lastSeen": "<string>",
      "vulnerability": {}
    }
  ],
  "total": 50,
  "totalOccurrences": 200,
  "scanProjectInfo": {},
  "vulnCountByType": {},
  "isProjectParsed": true,
  "autofixCountByType": {}
}

Authorizations

x-api-key
string
header
required

API Key for authentication. You can generate an API key from your personal settings.

Path Parameters

projectId
string<uuid>
required

Query Parameters

page
number
default:1

Page number

Example:

1

perPage
number
default:10

Page size

Example:

10

sort
enum<string>
default:occurrenceCount

Sort field

Available options:
occurrenceCount,
highestSeverity,
lastSeen,
currentSeverity,
currentPriority,
createdAt
Example:

"occurrenceCount"

order
enum<string>
default:DESC

Sort order

Available options:
ASC,
DESC,
asc,
desc
Example:

"DESC"

severityFilter
enum<string>[]

Filter by severity (repeat the param for multiple values, e.g. severityFilter=critical&severityFilter=high)

Available options:
critical,
high,
medium,
low
statusFilter
enum<string>[]

Filter by status (repeat the param for multiple values, e.g. statusFilter=to_verify&statusFilter=confirmed)

Available options:
to_verify,
not_exploitable,
proposed_not_exploitable,
resolved,
confirmed,
ignored
priorityFilter
enum<string>[]

Filter by priority (repeat the param for multiple values, e.g. priorityFilter=critical_urgent&priorityFilter=urgent)

Available options:
critical_urgent,
urgent,
normal,
low,
very_low
searchQuery
string

Search query

Example:

"SQL Injection"

branch
string

Filter by branch

Example:

"main"

hasAutofix
boolean

Filter by autofix availability: true = only with autofix, false = only without autofix, omit = all

Example:

true

Response

Grouped IAC vulnerabilities

projectId
string<uuid>
required

Project ID

projectName
string
required

Project name

Example:

"my-project"

page
number
required

Current page number

Example:

1

limit
number
required

Page size

Example:

10

totalPages
number
required

Total number of pages

Example:

5

sort
string
required

Sort field

Example:

"occurrenceCount"

order
string
required

Sort order

Example:

"DESC"

severity
string[]
required

Applied severity filters

status
string[]
required

Applied status filters

priority
string[]
required

Applied priority filters

groupedVulnerabilities
object[]
required

Grouped vulnerabilities

total
number
required

Total number of groups

Example:

50

totalOccurrences
number
required

Total number of occurrences across all groups

Example:

200

scanProjectInfo
object

Scan project info

vulnCountByType
object

Vulnerability count by type

isProjectParsed
boolean

Whether project has been parsed

autofixCountByType
object

Autofix count by type