scanner

Tests scanner registration settings

Pings scanner adapter to test endpoint URL and authorization settings.

post/scanners/ping

Headers

X-Request-Idstring

An unique ID for the request

Request body

namestring required

The name of this registration

urlstring uri required

A base URL of the scanner adapter.

authstring

Specify what authentication approach is adopted for the HTTP communications. Supported types Basic", "Bearer" and api key header "X-ScannerAdapter-API-Key"

access_credentialstring

An optional value of the HTTP Authorization header sent with each request to the Scanner Adapter API.

Example request

{
  "name": "Trivy",
  "url": "http://harbor-scanner-trivy:8080",
  "access_credential": "Bearer: JWTTOKENGOESHERE"
}

Response

Success

Changes

No recorded changes to this endpoint across all 1 revision of this API.