Skip to content

auditlog

auditlog list

auditlog list [OPTIONS]

List audit logs for projects the current user has access to. Recommended to specify a search query and to limit the number of results.

Options

--operation <OPERATION,[OPERATION...]>
Operation(s) to filter audit logs by. E.g. 'create'.
Separate multiple values with commas, or use --operation multiple times.
Type: text

--resource <RESOURCE,[RESOURCE...]>
Full name of the resource(s) to filter by. E.g. 'library/foo:latest'.
Separate multiple values with commas, or use --resource multiple times.
Type: text

--resource-type <RESOURCE_TYPE,[RESOURCE_TYPE...]>
Resource type(s) to filter audit logs by. E.g. 'artifact'.
Separate multiple values with commas, or use --resource-type multiple times.
Type: text

--username <USERNAME,[USERNAME...]>
Username to filter audit logs by.
Separate multiple values with commas, or use --username multiple times.
Type: text

--query <QUERY>
Query parameters to filter the results.
See harborapi docs for more information.
Type: text

--sort <SORT>
Sorting order of the results. Example: 'name,-id' to sort by name ascending and id descending.
Type: text

--page <PAGE>
(Advanced) Page to begin fetching from.
Type: integer
Default: 1

--page-size <PAGE_SIZE>
(Advanced) Results to fetch per API call.
Type: integer
Default: 10

--limit <LIMIT>
Maximum number of results to fetch.
Type: integer
Default: 10