@@ -16710,6 +16710,65 @@ paths:
1671016710 $ref: '#/components/responses/404'
1671116711 '500':
1671216712 $ref: '#/components/responses/500'
16713+ /admin/v1/vulns:
16714+ get:
16715+ operationId: listVulns
16716+ summary: List vulnerabilities
16717+ responses:
16718+ '200':
16719+ content:
16720+ application/json:
16721+ schema:
16722+ $ref: '#/components/schemas/vulnList'
16723+ description: Returned when vulnerabilities are listed successfully.
16724+ '401':
16725+ $ref: '#/components/responses/401'
16726+ '403':
16727+ $ref: '#/components/responses/403'
16728+ '404':
16729+ $ref: '#/components/responses/404'
16730+ tags:
16731+ - vuln
16732+ put:
16733+ operationId: uploadVulns
16734+ summary: Upload vulnerabilities
16735+ requestBody:
16736+ content:
16737+ multipart/form-data:
16738+ schema:
16739+ $ref: '#/components/schemas/vulnUploadFormData'
16740+ responses:
16741+ '200':
16742+ content: {}
16743+ description: Returned when vulnerabilities are uploaded successfully.
16744+ '401':
16745+ $ref: '#/components/responses/401'
16746+ '403':
16747+ $ref: '#/components/responses/403'
16748+ '404':
16749+ $ref: '#/components/responses/404'
16750+ tags:
16751+ - vuln
16752+ patch:
16753+ operationId: markVulnsAsIgnored
16754+ summary: Mark vulnerabilities as ignored
16755+ requestBody:
16756+ content:
16757+ application/json:
16758+ schema:
16759+ $ref: '#/components/schemas/markVulnsAsIgnored'
16760+ responses:
16761+ '200':
16762+ content: {}
16763+ description: Returned when vulnerabilities are marked as ignored successfully.
16764+ '401':
16765+ $ref: '#/components/responses/401'
16766+ '403':
16767+ $ref: '#/components/responses/403'
16768+ '404':
16769+ $ref: '#/components/responses/404'
16770+ tags:
16771+ - vuln
1671316772components:
1671416773 securitySchemes:
1671516774 BearerToken:
@@ -29799,6 +29858,104 @@ components:
2979929858 slaThreshold:
2980029859 type: number
2980129860 description: The SLA threshold value for the cluster.
29861+ refItem:
29862+ description: a reference of the vulnerability
29863+ properties:
29864+ rType:
29865+ description: the type of the reference
29866+ type: string
29867+ url:
29868+ description: the URL of the reference
29869+ type: string
29870+ required:
29871+ - rType
29872+ - url
29873+ vulnListItem:
29874+ description: a vulnerability which affected the cluster
29875+ properties:
29876+ cveId:
29877+ description: the CVE ID of the vulnerability
29878+ type: string
29879+ engineName:
29880+ description: the engine name of the vulnerability
29881+ type: string
29882+ productName:
29883+ description: the product name of the vulnerability
29884+ type: string
29885+ version:
29886+ description: the version of the product which is affected by the vulnerability
29887+ type: string
29888+ detail:
29889+ description: the detail of the vulnerability
29890+ type: string
29891+ severity:
29892+ description: the severity of the vulnerability
29893+ type: string
29894+ publishedAt:
29895+ description: the published time of the vulnerability
29896+ type: string
29897+ format: date-time
29898+ modifiedAt:
29899+ description: the modified time of the vulnerability
29900+ type: string
29901+ format: date-time
29902+ refs:
29903+ description: the references of the vulnerability
29904+ type: array
29905+ items:
29906+ $ref: '#/components/schemas/refItem'
29907+ required:
29908+ - cveId
29909+ - engineName
29910+ - productName
29911+ - version
29912+ - severity
29913+ - publishedAt
29914+ - modifiedAt
29915+ vulnList:
29916+ description: a list of vulnerabilities
29917+ properties:
29918+ items:
29919+ description: a list of vulnerabilities
29920+ items:
29921+ $ref: '#/components/schemas/vulnListItem'
29922+ type: array
29923+ pageResult:
29924+ $ref: '#/components/schemas/pageResult'
29925+ required:
29926+ - items
29927+ type: object
29928+ vulnUploadFormData:
29929+ description: the data of the upload task
29930+ type: object
29931+ required:
29932+ - file
29933+ properties:
29934+ file:
29935+ type: string
29936+ format: binary
29937+ description: the data file, zip or other format
29938+ markVulnsAsIgnored:
29939+ description: the data of the mark request
29940+ type: object
29941+ required:
29942+ - cveId
29943+ - engineName
29944+ - productName
29945+ - version
29946+ properties:
29947+ cveId:
29948+ type: string
29949+ description: the CVE ID of the vulnerability
29950+ engineName:
29951+ type: string
29952+ description: the engine name of the vulnerability
29953+ productName:
29954+ type: string
29955+ description: the product name of the vulnerability
29956+ version:
29957+ type: string
29958+ description: the version of the product which is affected by the vulnerability
2980229959 responses:
2980329960 '204':
2980429961 description: No Content
0 commit comments