Actions52
- Asset Actions
- Data Import Job Actions
- Job Config Actions
- Notification Actions
- Parser Actions
- Vulnerability Actions
- Vulnerability Audit Log Actions
- Vulnerability Detection Actions
- Vulnerability Detection Rule Actions
- Zone Actions
Vulnerability → Get Stats
AI-generatedSummary
Retrieve statistical summaries of vulnerabilities filtered and grouped by specified criteria from the Dragos platform.
Inputs
- Selector — A JSON selector to filter vulnerabilities, e.g., filtering by severity level.
- Group By Fields — An array of objects specifying fields to group statistics by, each including the field name and optional interval for bucketing (e.g., by age or CVSS score).
- Options — Additional options including 'Sort Field' to specify the field to sort results by and 'Sort Descending' to specify sort order.
Output shape
a statistical summary object as returned by the Dragos API
The operation sends a POST request to the /api/v1/vulnerability/stats endpoint with the parsed selector and group by parameters. The returned data includes aggregated statistics grouped per the specified fields. Sorting options influence server-side result ordering.
Examples
Example 1: Get vulnerability stats grouped by severity
Selector: {} (empty to get all), Group By Fields: [{ field: 'severity', interval: '' }], Options: sortField: 'count', sortDescending: true
Example 2: Get vulnerability stats grouped by age in months
Selector: filter by severity=HIGH, Group By Fields: [{ field: 'age', interval: 'MONTH' }], Options: none
