GoHarbor artifacts API

The artifacts API from GoHarbor — 2 operation(s) for artifacts.

OpenAPI Specification

goharbor-artifacts-api-openapi.yml Raw ↑
openapi: 3.1.0
info:
  title: Harbor artifacts API
  version: '2.0'
  description: 'Subset of the Harbor v2.0 REST API for the cloud-native container

    registry. Authenticates with HTTP Basic auth. Full upstream spec

    available at

    https://raw.githubusercontent.com/goharbor/harbor/main/api/v2.0/swagger.yaml

    '
  contact:
    name: Harbor
    url: https://goharbor.io/
servers:
- url: https://{host}/api/v2.0
  description: Harbor instance
  variables:
    host:
      default: harbor.example.com
security:
- basicAuth: []
tags:
- name: artifacts
paths:
  /projects/{project_name}/repositories/{repository_name}/artifacts:
    get:
      tags:
      - artifacts
      summary: List artifacts in a repository
      operationId: listArtifacts
      parameters:
      - name: project_name
        in: path
        required: true
        schema:
          type: string
      - name: repository_name
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: OK
  /projects/{project_name}/repositories/{repository_name}/artifacts/{reference}:
    get:
      tags:
      - artifacts
      summary: Get an artifact
      operationId: getArtifact
      parameters:
      - name: project_name
        in: path
        required: true
        schema:
          type: string
      - name: repository_name
        in: path
        required: true
        schema:
          type: string
      - name: reference
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: OK
    delete:
      tags:
      - artifacts
      summary: Delete an artifact
      operationId: deleteArtifact
      parameters:
      - name: project_name
        in: path
        required: true
        schema:
          type: string
      - name: repository_name
        in: path
        required: true
        schema:
          type: string
      - name: reference
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Deleted
components:
  securitySchemes:
    basicAuth:
      type: http
      scheme: basic
      description: Harbor user credentials (HTTP Basic)