group_vulnerability_severities_count
Gets or lists a group_vulnerability_severities_count resource.
Overview​
| Name | group_vulnerability_severities_count |
| Type | Resource |
| Id | gitlab.security.group_vulnerability_severities_count |
Fields​
The following fields are returned by SELECT queries:
- get
GraphQL response envelope
| Name | Datatype | Description |
|---|---|---|
critical | integer | Number of vulnerabilities of CRITICAL severity of the project |
high | integer | Number of vulnerabilities of HIGH severity of the project |
info | integer | Number of vulnerabilities of INFO severity of the project |
low | integer | Number of vulnerabilities of LOW severity of the project |
medium | integer | Number of vulnerabilities of MEDIUM severity of the project |
unknown | integer | Number of vulnerabilities of UNKNOWN severity of the project |
Methods​
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get | select | full_path, host | capped, has_ai_resolution, has_issues, has_merge_request, has_remediations, has_resolution | Counts for each vulnerability severity in the group and its subgroups. Generated from the GitLab GraphQL schema field Group.vulnerabilitySeveritiesCount (VulnerabilitySeveritiesCount). |
Parameters​
Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.
| Name | Datatype | Description |
|---|---|---|
full_path | string | Full path of the group, for example gitlab-org |
host | string | GitLab host, with an optional port (default gitlab.com). Resolved from the GITLAB_HOST environment variable when it is set (x-stackQL-envVar); a WHERE host value always takes precedence. Self-managed instances: the provider is generated from the gitlab.com schema, so older instances may reject fields they do not serve. (default: gitlab.com, x-stackQL-envVar: GITLAB_HOST) |
capped | boolean | Default value is false. When set to true, the count returned for each severity is capped at a maximum of 1001. Ignored when used along with any argument that requires advanced vulnerability management. |
has_ai_resolution | boolean | Filters vulnerabilities which can or can not be resolved by GitLab Duo Vulnerability Resolution. |
has_issues | boolean | Filter vulnerabilities that do or do not have issues. |
has_merge_request | boolean | Filter vulnerabilities that do or do not have a merge request. |
has_remediations | boolean | Filter vulnerabilities that do or do not have remediations. |
has_resolution | boolean | Filter vulnerabilities that do or do not have a resolution. |
SELECT examples​
- get
Counts for each vulnerability severity in the group and its subgroups. Generated from the GitLab GraphQL schema field Group.vulnerabilitySeveritiesCount (VulnerabilitySeveritiesCount).
SELECT
critical,
high,
info,
low,
medium,
unknown
FROM gitlab.security.group_vulnerability_severities_count
WHERE full_path = '{{ full_path }}' -- required
AND host = '{{ host }}' -- required (defaults to gitlab.com; or set GITLAB_HOST)
AND capped = '{{ capped }}'
AND has_ai_resolution = '{{ has_ai_resolution }}'
AND has_issues = '{{ has_issues }}'
AND has_merge_request = '{{ has_merge_request }}'
AND has_remediations = '{{ has_remediations }}'
AND has_resolution = '{{ has_resolution }}'
;