project
Get project level scanner
Get the scanner registration of the specified project. If no scanner registration is configured for the specified project, the system default scanner registration will be returned.
get/projects/{project_name_or_id}/scanner
Path parameters
project_name_or_idstring required
The name or id of the project
Headers
X-Request-Idstring
An unique ID for the request
X-Is-Resource-Nameboolean
The flag to indicate whether the parameter which supports both name and id in the path is the name of the resource. When the X-Is-Resource-Name is false and the parameter can be converted to an integer, the parameter will be as an id, otherwise, it will be as a name.
Response
The details of the scanner registration.
Example response
{
"name": "Trivy",
"description": "A free-to-use tool that scans container images for package vulnerabilities.\n",
"url": "http://harbor-scanner-trivy:8080",
"auth": "Bearer",
"access_credential": "Bearer: JWTTOKENGOESHERE",
"adapter": "Trivy",
"vendor": "CentOS",
"version": "1.0.1",
"health": "healthy",
"capabilities": {
"support_vulnerability": true,
"support_sbom": true
}
}Changes
No recorded changes to this endpoint across all 1 revision of this API.