Skip to content

scan export

scan export download

scan export download <EXECUTION_ID> <DESTINATION>

Download the results of a scan export job as a CSV file.

Arguments

EXECUTION_ID
The execution ID of the scan job to download.
Type: integer
Required:

DESTINATION
Destination to download the export to.
Type: path
Required:


scan export get

scan export get <EXECUTION_ID>

Get a specific scan export.

Arguments

EXECUTION_ID
The execution ID of the scan job to retrieve.
Type: integer
Required:


scan export list

scan export list

List all scan exports for the current user.


scan export start

scan export start [OPTIONS]

Start a scan export job.

Returns an execution ID that can be used to download the export once it is finished using harbor scan export download

Warning

The official documentation for this endpoint is poor, and as such, this command might not work as intended.

Options

--name <JOB_NAME>
Custom name for export job.
Type: text

--cve <CVE,[CVE...]>
CVE(s) to export
Separate multiple values with commas, or use --cve multiple times.
Type: text
Default: []

--tag <TAG,[TAG...]>
Names of tag(s) to include in the export. Supports wildcards ('tag*', '**'). Defaults to all tags ('**')
Separate multiple values with commas, or use --tag multiple times.
Type: text
Default: ['**']

--label <LABEL,[LABEL...]>
IDs of specific label(s) to include in the export.
Separate multiple values with commas, or use --label multiple times.
Type: text
Default: []

--repo <REPO,[REPO...]>
Names of repo(s) to include in the export. Supports wildcards ('repo*', '**'). Defaults to all repos ('**')
Separate multiple values with commas, or use --repo multiple times.
Type: text
Default: ['**']

--project <PROJECT>
Name or ID of project to include in the export.
Type: text

--scan-type <SCAN_TYPE>
The type of scan to export. Should not be changed unless you know what you are doing.
Type: text
Default: application/vnd.security.vulnerability.report; version=1.1