scanner
Update a scanner registration
Updates the specified scanner registration.
If access_credential is omitted or empty in the request body and the registration still uses an authentication type that requires a credential (Basic, Bearer, or APIKey), the existing stored credential is left unchanged. Send a non-empty access_credential to set or rotate the secret.
put/scanners/{registration_id}
Path parameters
registration_idstring required
The scanner registration identifier.
Headers
X-Request-Idstring
An unique ID for the request
Request body
Example request
{
"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"
}Response
Success
Changes
No recorded changes to this endpoint across all 1 revision of this API.