gc
gc job
Get garbage collection job by its ID.
Arguments
JOB_ID
The ID of the Garbage Collection job to fetch.
Type: integer
Required: ✅
gc jobs
Get garbage collection jobs.
Options
--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
gc log
Get garbage collection job by its ID.
Arguments
JOB_ID
The ID of the Garbage Collection job to fetch logs for.
Type: integer
Required: ✅