diff options
author | Douwe Maan <douwe@gitlab.com> | 2019-07-10 16:53:16 +0000 |
---|---|---|
committer | Douwe Maan <douwe@gitlab.com> | 2019-07-10 16:53:16 +0000 |
commit | 19a8a3d5cb3a89a128137cab181647366c866116 (patch) | |
tree | 4626e9461784a2aee42c2b8da314cab6f2c6a497 | |
parent | af272692b523ea11bec5b1fe50a84a84bc364d24 (diff) | |
parent | 39757992554f95902ec3c8b7dc9bcaac1c0aa3fb (diff) | |
download | gitlab-ce-19a8a3d5cb3a89a128137cab181647366c866116.tar.gz |
Merge branch 'rf-optional-pipeline-for-vulnerabilities-api' into 'master'
Vulnerabilities API now supports pipeline_id
See merge request gitlab-org/gitlab-ce!30086
-rw-r--r-- | doc/api/vulnerabilities.md | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/doc/api/vulnerabilities.md b/doc/api/vulnerabilities.md index cc6e5d3960b..eaa4c13de55 100644 --- a/doc/api/vulnerabilities.md +++ b/doc/api/vulnerabilities.md @@ -30,6 +30,7 @@ GET /projects/:id/vulnerabilities?scope=all GET /projects/:id/vulnerabilities?scope=dismissed GET /projects/:id/vulnerabilities?severity=high GET /projects/:id/vulnerabilities?confidence=unknown,experimental +GET /projects/:id/vulnerabilities?pipeline_id=42 ``` | Attribute | Type | Required | Description | @@ -39,6 +40,7 @@ GET /projects/:id/vulnerabilities?confidence=unknown,experimental | `scope` | string | no | Returns vulnerabilities for the given scope: `all` or `dismissed`. Defaults to `dismissed` | | `severity` | string array | no | Returns vulnerabilities belonging to specified severity level: `undefined`, `info`, `unknown`, `low`, `medium`, `high`, or `critical`. Defaults to all' | | `confidence` | string array | no | Returns vulnerabilities belonging to specified confidence level: `undefined`, `ignore`, `unknown`, `experimental`, `low`, `medium`, `high`, or `confirmed`. Defaults to all | +| `pipeline_id` | integer/string | no | Returns vulnerabilities belonging to specified pipeline. | ```bash curl --header "PRIVATE-TOKEN: <your_access_token>" https://gitlab.example.com/api/v4/projects/4/vulnerabilities |