TOKEN 74h5cR8sETSJRvOFkdbsISY3lsgfNGu_V5aNur4Pxu1Jh8kP0NQBJhuWQsRmGzTX
Parameter | Type | Explanation | Example Value |
serviceName* | PATH | serviceName is a repository in DevOps intelligence on which Container Vulnerability scan runs(repo name) | dev_secops |
Authorization* | Header | Authorization has service token | 74h5cR8sETSJRvOFkdbsISY3lsgfNGu_V5aNur4Pxu1Jh8kP0NQBJhuWQsRmGzTX |
scannedBy* | Query Parameter | Tool which is used to scan the Container Vulnerability of the repositories | anchore |
scannedTime* | Query Parameter | The time at which Container Vulnerability are scanned and time(2006-01-02T15:04:05.999999999Z07:00) should be URL encoded | 2021-06-28T12%3A07%3A29.104834%2B05%3A37 |
scan * | BODY | Build Data in Json |
|
Request
curl --location --request POST 'https://{devops-intelligence-host}/dash/api/build/v1/services/{serviceName}/image-scan?scannedBy=anchore&scannedTime=2021-06-28T12%3A07%3A29.104834%2B05%3A37' \ --header 'Authorization: TOKEN 74h5cR8sETSJRvOFkdbsISY3lsgfNGu_V5aNur4Pxu1Jh8kP0NQBJhuWQsRmGzTX' \ --header 'Content-Type: application/json' \ --data-raw '{ "provider_href": "https://github.kyndryl.net/" "vulnerable_image_scan": [ { "cvss_score": 0, "description": "description of vulnerability", "image_digest": "unique id for image digest", "package_name": "crypto", "package_path": "https://github.kyndryl.net/multicloud/crypto", "package_version": "0.1", "severity": "high", "url_datasource": "http://host/datastoreurl", "vulnerability_id": "xxxxxsfsdxxx" } ] }'
Response 200
"Total Number of records inserted successfully is 1"
Field | Data Type | Explanation | Example Value |
---|---|---|---|
provider_href | string | Provider URL on which container vulnerability is scanned | https://github.kyndryl.net/ |
cvss_score | int | cvss score | 1 |
description | string | description | description for vulnerability |
image_digest | string | image digest | github.com/Luzifer/go-openssl |
package_name | string | package name | luzifer |
package_path | string | location of package installed in system | /Users/anilsahu/go/pkg/mod/github.com/!luzifer/go-openssl/[email protected] |
package_version | string | package version | 0.1.2 |
severity | string | lseverity of vulnerability | critical, high, low, medium |
url_datasource | string | datastore url | github.com/Luzifer/go-openssl |
vulnerability_id | string | Vul ID | xxxxxsfsdxxx |