diff options
author | rossfuhrman <rfuhrman@gitlab.com> | 2019-06-26 08:03:40 -0500 |
---|---|---|
committer | rossfuhrman <rfuhrman@gitlab.com> | 2019-07-08 08:23:15 -0500 |
commit | 1518f8b7ac0792df8d14bec9b0fc44ecf8a81ad0 (patch) | |
tree | 9a86ae9b81740aca8eb427b4fa2471c9f39f064b | |
parent | 886521c7e563e04574fd803a22476f1158961fad (diff) | |
download | gitlab-ce-rf-optional-pipeline-for-vulnerabilities-api.tar.gz |
Vulnerabilities API now supports pipeline_idrf-optional-pipeline-for-vulnerabilities-api
-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 |