2019-12-11 17:07:24 -05:00
|
|
|
definitions:
|
2023-08-02 13:58:34 -05:00
|
|
|
api.APIKeyPayload:
|
|
|
|
properties:
|
2023-08-29 11:38:38 -05:00
|
|
|
expirationDate:
|
|
|
|
type: string
|
2023-08-02 13:58:34 -05:00
|
|
|
label:
|
|
|
|
type: string
|
|
|
|
scopes:
|
|
|
|
items:
|
|
|
|
type: string
|
|
|
|
type: array
|
|
|
|
type: object
|
2022-02-24 15:31:36 -05:00
|
|
|
api.ExtensionList:
|
2023-06-12 12:32:11 -05:00
|
|
|
properties:
|
|
|
|
extensions:
|
|
|
|
items:
|
|
|
|
$ref: '#/definitions/extensions.Extension'
|
|
|
|
type: array
|
|
|
|
type: object
|
|
|
|
api.ImageIndex:
|
|
|
|
properties:
|
|
|
|
annotations:
|
|
|
|
additionalProperties:
|
|
|
|
type: string
|
|
|
|
description: Annotations contains arbitrary metadata for the image index.
|
|
|
|
type: object
|
2023-08-02 13:58:34 -05:00
|
|
|
artifactType:
|
|
|
|
description: ArtifactType specifies the IANA media type of artifact when the
|
|
|
|
manifest is used for an artifact.
|
|
|
|
type: string
|
2023-06-12 12:32:11 -05:00
|
|
|
manifests:
|
|
|
|
description: Manifests references platform specific manifests.
|
|
|
|
items:
|
2024-03-06 15:16:42 -05:00
|
|
|
$ref: '#/definitions/v1.Descriptor'
|
2023-06-12 12:32:11 -05:00
|
|
|
type: array
|
|
|
|
mediaType:
|
|
|
|
description: MediaType specifies the type of this document data structure
|
|
|
|
e.g. `application/vnd.oci.image.index.v1+json`
|
|
|
|
type: string
|
|
|
|
schemaVersion:
|
|
|
|
description: SchemaVersion is the image manifest schema that this image follows
|
|
|
|
type: integer
|
2023-08-02 13:58:34 -05:00
|
|
|
subject:
|
|
|
|
allOf:
|
2024-03-06 15:16:42 -05:00
|
|
|
- $ref: '#/definitions/v1.Descriptor'
|
2023-08-02 13:58:34 -05:00
|
|
|
description: Subject is an optional link from the image manifest to another
|
|
|
|
manifest forming an association between the image manifest and the other
|
|
|
|
manifest.
|
2022-02-24 15:31:36 -05:00
|
|
|
type: object
|
2019-12-11 17:07:24 -05:00
|
|
|
api.ImageManifest:
|
2023-06-12 12:32:11 -05:00
|
|
|
properties:
|
|
|
|
annotations:
|
|
|
|
additionalProperties:
|
|
|
|
type: string
|
|
|
|
description: Annotations contains arbitrary metadata for the image manifest.
|
|
|
|
type: object
|
|
|
|
artifactType:
|
|
|
|
description: ArtifactType specifies the IANA media type of artifact when the
|
|
|
|
manifest is used for an artifact.
|
|
|
|
type: string
|
|
|
|
config:
|
|
|
|
allOf:
|
2024-03-06 15:16:42 -05:00
|
|
|
- $ref: '#/definitions/v1.Descriptor'
|
2023-06-12 12:32:11 -05:00
|
|
|
description: |-
|
|
|
|
Config references a configuration object for a container, by digest.
|
|
|
|
The referenced configuration object is a JSON blob that the runtime uses to set up the container.
|
|
|
|
layers:
|
|
|
|
description: Layers is an indexed list of layers referenced by the manifest.
|
|
|
|
items:
|
2024-03-06 15:16:42 -05:00
|
|
|
$ref: '#/definitions/v1.Descriptor'
|
2023-06-12 12:32:11 -05:00
|
|
|
type: array
|
|
|
|
mediaType:
|
|
|
|
description: MediaType specifies the type of this document data structure
|
|
|
|
e.g. `application/vnd.oci.image.manifest.v1+json`
|
|
|
|
type: string
|
|
|
|
schemaVersion:
|
|
|
|
description: SchemaVersion is the image manifest schema that this image follows
|
|
|
|
type: integer
|
|
|
|
subject:
|
|
|
|
allOf:
|
2024-03-06 15:16:42 -05:00
|
|
|
- $ref: '#/definitions/v1.Descriptor'
|
2023-06-12 12:32:11 -05:00
|
|
|
description: Subject is an optional link from the image manifest to another
|
|
|
|
manifest forming an association between the image manifest and the other
|
|
|
|
manifest.
|
2019-12-11 17:07:24 -05:00
|
|
|
type: object
|
2023-09-13 02:28:14 -05:00
|
|
|
api.RepositoryList:
|
2019-12-11 17:07:24 -05:00
|
|
|
properties:
|
2023-09-13 02:28:14 -05:00
|
|
|
repositories:
|
2019-12-11 17:07:24 -05:00
|
|
|
items:
|
|
|
|
type: string
|
|
|
|
type: array
|
|
|
|
type: object
|
2023-09-13 02:28:14 -05:00
|
|
|
common.ImageTags:
|
2019-12-11 17:07:24 -05:00
|
|
|
properties:
|
2023-09-13 02:28:14 -05:00
|
|
|
name:
|
|
|
|
type: string
|
|
|
|
tags:
|
2019-12-11 17:07:24 -05:00
|
|
|
items:
|
|
|
|
type: string
|
|
|
|
type: array
|
|
|
|
type: object
|
2023-06-19 12:43:25 -05:00
|
|
|
extensions.Auth:
|
|
|
|
properties:
|
2023-12-14 12:54:51 -05:00
|
|
|
apikey:
|
|
|
|
type: boolean
|
2023-06-19 12:43:25 -05:00
|
|
|
bearer:
|
|
|
|
$ref: '#/definitions/extensions.BearerConfig'
|
|
|
|
htpasswd:
|
|
|
|
$ref: '#/definitions/extensions.HTPasswd'
|
|
|
|
ldap:
|
|
|
|
properties:
|
|
|
|
address:
|
|
|
|
type: string
|
|
|
|
type: object
|
2023-08-02 13:58:34 -05:00
|
|
|
openid:
|
|
|
|
$ref: '#/definitions/extensions.OpenIDConfig'
|
2023-06-19 12:43:25 -05:00
|
|
|
type: object
|
|
|
|
extensions.BearerConfig:
|
|
|
|
properties:
|
|
|
|
realm:
|
|
|
|
type: string
|
|
|
|
service:
|
|
|
|
type: string
|
|
|
|
type: object
|
2023-06-12 12:32:11 -05:00
|
|
|
extensions.Extension:
|
|
|
|
properties:
|
|
|
|
description:
|
|
|
|
type: string
|
|
|
|
endpoints:
|
|
|
|
items:
|
|
|
|
type: string
|
|
|
|
type: array
|
|
|
|
name:
|
|
|
|
type: string
|
|
|
|
url:
|
|
|
|
type: string
|
|
|
|
type: object
|
2023-06-19 12:43:25 -05:00
|
|
|
extensions.HTPasswd:
|
|
|
|
properties:
|
|
|
|
path:
|
|
|
|
type: string
|
|
|
|
type: object
|
2023-08-02 13:58:34 -05:00
|
|
|
extensions.OpenIDConfig:
|
|
|
|
properties:
|
|
|
|
providers:
|
|
|
|
additionalProperties:
|
|
|
|
$ref: '#/definitions/extensions.OpenIDProviderConfig'
|
|
|
|
type: object
|
|
|
|
type: object
|
|
|
|
extensions.OpenIDProviderConfig:
|
2023-08-24 04:33:35 -05:00
|
|
|
properties:
|
|
|
|
name:
|
|
|
|
type: string
|
2023-08-02 13:58:34 -05:00
|
|
|
type: object
|
2023-06-19 12:43:25 -05:00
|
|
|
extensions.StrippedConfig:
|
|
|
|
properties:
|
|
|
|
binaryType:
|
|
|
|
type: string
|
2023-11-22 12:25:21 -05:00
|
|
|
commit:
|
|
|
|
type: string
|
2023-06-19 12:43:25 -05:00
|
|
|
distSpecVersion:
|
|
|
|
type: string
|
|
|
|
http:
|
|
|
|
properties:
|
|
|
|
auth:
|
|
|
|
$ref: '#/definitions/extensions.Auth'
|
|
|
|
type: object
|
2023-11-22 12:25:21 -05:00
|
|
|
releaseTag:
|
|
|
|
type: string
|
2023-06-19 12:43:25 -05:00
|
|
|
type: object
|
2024-03-06 15:16:42 -05:00
|
|
|
v1.Descriptor:
|
2023-06-12 12:32:11 -05:00
|
|
|
properties:
|
|
|
|
annotations:
|
|
|
|
additionalProperties:
|
|
|
|
type: string
|
|
|
|
description: Annotations contains arbitrary metadata relating to the targeted
|
|
|
|
content.
|
|
|
|
type: object
|
|
|
|
artifactType:
|
|
|
|
description: ArtifactType is the IANA media type of this artifact.
|
|
|
|
type: string
|
|
|
|
data:
|
|
|
|
description: |-
|
|
|
|
Data is an embedding of the targeted content. This is encoded as a base64
|
|
|
|
string when marshalled to JSON (automatically, by encoding/json). If
|
|
|
|
present, Data can be used directly to avoid fetching the targeted content.
|
|
|
|
items:
|
|
|
|
type: integer
|
|
|
|
type: array
|
|
|
|
digest:
|
|
|
|
description: Digest is the digest of the targeted content.
|
|
|
|
type: string
|
|
|
|
mediaType:
|
|
|
|
description: MediaType is the media type of the object this schema refers
|
|
|
|
to.
|
|
|
|
type: string
|
|
|
|
platform:
|
|
|
|
allOf:
|
2023-08-23 11:21:43 -05:00
|
|
|
- $ref: '#/definitions/v1.Platform'
|
2023-06-12 12:32:11 -05:00
|
|
|
description: |-
|
|
|
|
Platform describes the platform which the image in the manifest runs on.
|
|
|
|
|
|
|
|
This should only be used when referring to a manifest.
|
|
|
|
size:
|
|
|
|
description: Size specifies the size in bytes of the blob.
|
|
|
|
type: integer
|
|
|
|
urls:
|
|
|
|
description: URLs specifies a list of URLs from which this object MAY be downloaded
|
|
|
|
items:
|
|
|
|
type: string
|
|
|
|
type: array
|
|
|
|
type: object
|
2023-08-23 11:21:43 -05:00
|
|
|
v1.Platform:
|
2023-06-12 12:32:11 -05:00
|
|
|
properties:
|
|
|
|
architecture:
|
|
|
|
description: |-
|
|
|
|
Architecture field specifies the CPU architecture, for example
|
2023-06-19 12:43:25 -05:00
|
|
|
`amd64` or `ppc64le`.
|
2023-06-12 12:32:11 -05:00
|
|
|
type: string
|
|
|
|
os:
|
|
|
|
description: OS specifies the operating system, for example `linux` or `windows`.
|
|
|
|
type: string
|
|
|
|
os.features:
|
|
|
|
description: |-
|
|
|
|
OSFeatures is an optional field specifying an array of strings,
|
|
|
|
each listing a required OS feature (for example on Windows `win32k`).
|
|
|
|
items:
|
|
|
|
type: string
|
|
|
|
type: array
|
|
|
|
os.version:
|
|
|
|
description: |-
|
|
|
|
OSVersion is an optional field specifying the operating system
|
|
|
|
version, for example on Windows `10.0.14393.1066`.
|
|
|
|
type: string
|
|
|
|
variant:
|
|
|
|
description: |-
|
|
|
|
Variant is an optional field specifying a variant of the CPU, for
|
|
|
|
example `v7` to specify ARMv7 when architecture is `arm`.
|
|
|
|
type: string
|
|
|
|
type: object
|
2019-12-11 17:07:24 -05:00
|
|
|
info:
|
2023-06-12 12:32:11 -05:00
|
|
|
contact: {}
|
2019-12-11 17:07:24 -05:00
|
|
|
description: APIs for Open Container Initiative Distribution Specification
|
|
|
|
license:
|
|
|
|
name: Apache 2.0
|
|
|
|
url: http://www.apache.org/licenses/LICENSE-2.0.html
|
|
|
|
title: Open Container Initiative Distribution Specification
|
2024-02-20 06:27:21 -05:00
|
|
|
version: v1.1.0
|
2019-12-11 17:07:24 -05:00
|
|
|
paths:
|
|
|
|
/v2/:
|
|
|
|
get:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
description: Check if this API version is supported
|
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
responses:
|
|
|
|
"200":
|
2022-02-24 15:31:36 -05:00
|
|
|
description: ok".
|
2019-12-11 17:07:24 -05:00
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
summary: Check API support
|
|
|
|
/v2/_catalog:
|
|
|
|
get:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
description: List all image repositories
|
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: OK
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/api.RepositoryList'
|
|
|
|
"500":
|
|
|
|
description: internal server error
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
summary: List image repositories
|
2022-02-24 15:31:36 -05:00
|
|
|
/v2/_oci/ext/discover:
|
|
|
|
get:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
description: List all extensions present on registry
|
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: OK
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/api.ExtensionList'
|
|
|
|
summary: List Registry level extensions
|
2023-08-02 13:58:34 -05:00
|
|
|
/v2/_zot/ext/cosign:
|
|
|
|
post:
|
|
|
|
consumes:
|
|
|
|
- application/octet-stream
|
|
|
|
description: Upload cosign public keys for verifying signatures
|
|
|
|
parameters:
|
|
|
|
- description: Public key content
|
|
|
|
in: body
|
|
|
|
name: requestBody
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: ok
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
"400":
|
|
|
|
description: bad request".
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
"500":
|
|
|
|
description: internal server error".
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
summary: Upload cosign public keys for verifying signatures
|
2023-06-19 12:43:25 -05:00
|
|
|
/v2/_zot/ext/mgmt:
|
|
|
|
get:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
description: Get current server configuration
|
2023-07-06 06:57:59 -05:00
|
|
|
parameters:
|
|
|
|
- description: specify resource
|
|
|
|
enum:
|
|
|
|
- config
|
|
|
|
in: query
|
|
|
|
name: resource
|
|
|
|
type: string
|
2023-06-19 12:43:25 -05:00
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: OK
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/extensions.StrippedConfig'
|
|
|
|
"500":
|
|
|
|
description: internal server error".
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
summary: Get current server configuration
|
2023-08-02 13:58:34 -05:00
|
|
|
/v2/_zot/ext/notation:
|
2023-07-06 06:57:59 -05:00
|
|
|
post:
|
|
|
|
consumes:
|
|
|
|
- application/octet-stream
|
2023-08-02 13:58:34 -05:00
|
|
|
description: Upload notation certificates for verifying signatures
|
2023-07-06 06:57:59 -05:00
|
|
|
parameters:
|
|
|
|
- description: truststore type
|
|
|
|
in: query
|
|
|
|
name: truststoreType
|
|
|
|
type: string
|
2023-08-02 13:58:34 -05:00
|
|
|
- description: Certificate content
|
2023-07-06 06:57:59 -05:00
|
|
|
in: body
|
|
|
|
name: requestBody
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: ok
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
"400":
|
|
|
|
description: bad request".
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
"500":
|
|
|
|
description: internal server error".
|
|
|
|
schema:
|
|
|
|
type: string
|
2023-08-02 13:58:34 -05:00
|
|
|
summary: Upload notation certificates for verifying signatures
|
2023-06-19 12:43:25 -05:00
|
|
|
/v2/_zot/ext/userprefs:
|
|
|
|
put:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
description: Add bookmarks/stars info
|
|
|
|
parameters:
|
|
|
|
- description: specify action
|
|
|
|
enum:
|
2023-06-20 07:32:19 -05:00
|
|
|
- toggleBookmark
|
|
|
|
- toggleStar
|
2023-06-19 12:43:25 -05:00
|
|
|
in: query
|
|
|
|
name: action
|
|
|
|
required: true
|
|
|
|
type: string
|
|
|
|
- description: repository name
|
|
|
|
in: query
|
|
|
|
name: repo
|
|
|
|
required: true
|
|
|
|
type: string
|
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: ok
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
"400":
|
|
|
|
description: bad request".
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
"403":
|
|
|
|
description: forbidden
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
"404":
|
|
|
|
description: not found
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
"500":
|
|
|
|
description: internal server error
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
summary: Add bookmarks/stars info
|
2019-12-11 17:07:24 -05:00
|
|
|
/v2/{name}/blobs/{digest}:
|
|
|
|
delete:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
description: Delete an image's blob/layer given a digest
|
|
|
|
parameters:
|
|
|
|
- description: repository name
|
|
|
|
in: path
|
|
|
|
name: name
|
|
|
|
required: true
|
|
|
|
type: string
|
|
|
|
- description: blob/layer digest
|
|
|
|
in: path
|
|
|
|
name: digest
|
|
|
|
required: true
|
|
|
|
type: string
|
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
responses:
|
|
|
|
"202":
|
|
|
|
description: accepted
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
summary: Delete image blob/layer
|
|
|
|
get:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
description: Get an image's blob/layer given a digest
|
|
|
|
parameters:
|
|
|
|
- description: repository name
|
|
|
|
in: path
|
|
|
|
name: name
|
|
|
|
required: true
|
|
|
|
type: string
|
|
|
|
- description: blob/layer digest
|
|
|
|
in: path
|
|
|
|
name: digest
|
|
|
|
required: true
|
|
|
|
type: string
|
|
|
|
produces:
|
|
|
|
- application/vnd.oci.image.layer.v1.tar+gzip
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: OK
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/api.ImageManifest'
|
|
|
|
summary: Get image blob/layer
|
|
|
|
head:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
description: Check an image's blob/layer given a digest
|
|
|
|
parameters:
|
|
|
|
- description: repository name
|
|
|
|
in: path
|
|
|
|
name: name
|
|
|
|
required: true
|
|
|
|
type: string
|
|
|
|
- description: blob/layer digest
|
|
|
|
in: path
|
|
|
|
name: digest
|
|
|
|
required: true
|
|
|
|
type: string
|
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: OK
|
|
|
|
headers:
|
2022-02-24 15:31:36 -05:00
|
|
|
constants.DistContentDigestKey:
|
2019-12-11 17:07:24 -05:00
|
|
|
type: object
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/api.ImageManifest'
|
|
|
|
summary: Check image blob/layer
|
|
|
|
/v2/{name}/blobs/uploads:
|
|
|
|
post:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
description: Create a new image blob/layer upload
|
|
|
|
parameters:
|
|
|
|
- description: repository name
|
|
|
|
in: path
|
|
|
|
name: name
|
|
|
|
required: true
|
|
|
|
type: string
|
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
responses:
|
|
|
|
"202":
|
|
|
|
description: accepted
|
|
|
|
headers:
|
|
|
|
Location:
|
2022-02-24 15:31:36 -05:00
|
|
|
description: /v2/{name}/blobs/uploads/{session_id}
|
2019-12-11 17:07:24 -05:00
|
|
|
type: string
|
|
|
|
Range:
|
2022-06-29 03:12:20 -05:00
|
|
|
description: 0-0
|
2019-12-11 17:07:24 -05:00
|
|
|
type: string
|
|
|
|
schema:
|
|
|
|
type: string
|
2023-09-01 13:13:53 -05:00
|
|
|
"401":
|
|
|
|
description: unauthorized
|
|
|
|
schema:
|
|
|
|
type: string
|
2019-12-11 17:07:24 -05:00
|
|
|
"404":
|
|
|
|
description: not found
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
"500":
|
|
|
|
description: internal server error
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
summary: Create image blob/layer upload
|
2022-02-24 15:31:36 -05:00
|
|
|
/v2/{name}/blobs/uploads/{session_id}:
|
2019-12-11 17:07:24 -05:00
|
|
|
delete:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
description: Delete an image's blob/layer given a digest
|
|
|
|
parameters:
|
|
|
|
- description: repository name
|
|
|
|
in: path
|
|
|
|
name: name
|
|
|
|
required: true
|
|
|
|
type: string
|
2022-02-24 15:31:36 -05:00
|
|
|
- description: upload session_id
|
2019-12-11 17:07:24 -05:00
|
|
|
in: path
|
2022-02-24 15:31:36 -05:00
|
|
|
name: session_id
|
2019-12-11 17:07:24 -05:00
|
|
|
required: true
|
|
|
|
type: string
|
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: ok
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
"404":
|
|
|
|
description: not found
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
"500":
|
|
|
|
description: internal server error
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
summary: Delete image blob/layer
|
|
|
|
get:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
2022-02-24 15:31:36 -05:00
|
|
|
description: Get an image's blob/layer upload given a session_id
|
2019-12-11 17:07:24 -05:00
|
|
|
parameters:
|
|
|
|
- description: repository name
|
|
|
|
in: path
|
|
|
|
name: name
|
|
|
|
required: true
|
|
|
|
type: string
|
2022-02-24 15:31:36 -05:00
|
|
|
- description: upload session_id
|
2019-12-11 17:07:24 -05:00
|
|
|
in: path
|
2022-02-24 15:31:36 -05:00
|
|
|
name: session_id
|
2019-12-11 17:07:24 -05:00
|
|
|
required: true
|
|
|
|
type: string
|
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
responses:
|
|
|
|
"204":
|
|
|
|
description: no content
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
"404":
|
|
|
|
description: not found
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
"500":
|
|
|
|
description: internal server error
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
summary: Get image blob/layer upload
|
|
|
|
patch:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
2022-02-24 15:31:36 -05:00
|
|
|
description: Resume an image's blob/layer upload given an session_id
|
2019-12-11 17:07:24 -05:00
|
|
|
parameters:
|
|
|
|
- description: repository name
|
|
|
|
in: path
|
|
|
|
name: name
|
|
|
|
required: true
|
|
|
|
type: string
|
2022-02-24 15:31:36 -05:00
|
|
|
- description: upload session_id
|
2019-12-11 17:07:24 -05:00
|
|
|
in: path
|
2022-02-24 15:31:36 -05:00
|
|
|
name: session_id
|
2019-12-11 17:07:24 -05:00
|
|
|
required: true
|
|
|
|
type: string
|
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
responses:
|
|
|
|
"202":
|
|
|
|
description: accepted
|
|
|
|
headers:
|
|
|
|
Location:
|
2022-02-24 15:31:36 -05:00
|
|
|
description: /v2/{name}/blobs/uploads/{session_id}
|
2019-12-11 17:07:24 -05:00
|
|
|
type: string
|
|
|
|
Range:
|
2022-06-29 03:12:20 -05:00
|
|
|
description: 0-128
|
2019-12-11 17:07:24 -05:00
|
|
|
type: string
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
"400":
|
|
|
|
description: bad request
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
"404":
|
|
|
|
description: not found
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
"416":
|
|
|
|
description: range not satisfiable
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
"500":
|
|
|
|
description: internal server error
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
summary: Resume image blob/layer upload
|
|
|
|
put:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
description: Update and finish an image's blob/layer upload given a digest
|
|
|
|
parameters:
|
|
|
|
- description: repository name
|
|
|
|
in: path
|
|
|
|
name: name
|
|
|
|
required: true
|
|
|
|
type: string
|
2022-02-24 15:31:36 -05:00
|
|
|
- description: upload session_id
|
2019-12-11 17:07:24 -05:00
|
|
|
in: path
|
2022-02-24 15:31:36 -05:00
|
|
|
name: session_id
|
2019-12-11 17:07:24 -05:00
|
|
|
required: true
|
|
|
|
type: string
|
|
|
|
- description: blob/layer digest
|
|
|
|
in: query
|
|
|
|
name: digest
|
|
|
|
required: true
|
|
|
|
type: string
|
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
responses:
|
|
|
|
"201":
|
|
|
|
description: created
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
"404":
|
|
|
|
description: not found
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
"500":
|
|
|
|
description: internal server error
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
summary: Update image blob/layer upload
|
|
|
|
/v2/{name}/manifests/{reference}:
|
|
|
|
delete:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
description: Delete an image's manifest given a reference or a digest
|
|
|
|
parameters:
|
|
|
|
- description: repository name
|
|
|
|
in: path
|
|
|
|
name: name
|
|
|
|
required: true
|
|
|
|
type: string
|
|
|
|
- description: image reference or digest
|
|
|
|
in: path
|
|
|
|
name: reference
|
|
|
|
required: true
|
|
|
|
type: string
|
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: ok
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
summary: Delete image manifest
|
|
|
|
get:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
description: Get an image's manifest given a reference or a digest
|
|
|
|
parameters:
|
|
|
|
- description: repository name
|
|
|
|
in: path
|
|
|
|
name: name
|
|
|
|
required: true
|
|
|
|
type: string
|
|
|
|
- description: image reference or digest
|
|
|
|
in: path
|
|
|
|
name: reference
|
|
|
|
required: true
|
|
|
|
type: string
|
|
|
|
produces:
|
|
|
|
- application/vnd.oci.image.manifest.v1+json
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: OK
|
|
|
|
headers:
|
2022-02-24 15:31:36 -05:00
|
|
|
constants.DistContentDigestKey:
|
2019-12-11 17:07:24 -05:00
|
|
|
type: object
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/api.ImageManifest'
|
|
|
|
"404":
|
|
|
|
description: not found
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
"500":
|
|
|
|
description: internal server error
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
summary: Get image manifest
|
|
|
|
head:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
description: Check an image's manifest given a reference or a digest
|
|
|
|
parameters:
|
|
|
|
- description: repository name
|
|
|
|
in: path
|
|
|
|
name: name
|
|
|
|
required: true
|
|
|
|
type: string
|
|
|
|
- description: image reference or digest
|
|
|
|
in: path
|
|
|
|
name: reference
|
|
|
|
required: true
|
|
|
|
type: string
|
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: ok
|
|
|
|
headers:
|
2023-08-15 15:07:56 -05:00
|
|
|
constants.DistContentDigestKey:
|
2019-12-11 17:07:24 -05:00
|
|
|
type: object
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
"404":
|
|
|
|
description: not found
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
"500":
|
2022-02-24 15:31:36 -05:00
|
|
|
description: internal server error".
|
2019-12-11 17:07:24 -05:00
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
summary: Check image manifest
|
|
|
|
put:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
description: Update an image's manifest given a reference or a digest
|
|
|
|
parameters:
|
|
|
|
- description: repository name
|
|
|
|
in: path
|
|
|
|
name: name
|
|
|
|
required: true
|
|
|
|
type: string
|
|
|
|
- description: image reference or digest
|
|
|
|
in: path
|
|
|
|
name: reference
|
|
|
|
required: true
|
|
|
|
type: string
|
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
responses:
|
|
|
|
"201":
|
|
|
|
description: created
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
"400":
|
|
|
|
description: bad request
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
"404":
|
|
|
|
description: not found
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
"500":
|
|
|
|
description: internal server error
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
summary: Update image manifest
|
2023-06-12 12:32:11 -05:00
|
|
|
/v2/{name}/referrers/{digest}:
|
|
|
|
get:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
description: Get referrers given a digest
|
|
|
|
parameters:
|
|
|
|
- description: repository name
|
|
|
|
in: path
|
|
|
|
name: name
|
|
|
|
required: true
|
|
|
|
type: string
|
|
|
|
- description: digest
|
|
|
|
in: path
|
|
|
|
name: digest
|
|
|
|
required: true
|
|
|
|
type: string
|
|
|
|
- description: artifact type
|
|
|
|
in: query
|
|
|
|
name: artifactType
|
|
|
|
type: string
|
|
|
|
produces:
|
|
|
|
- application/vnd.oci.image.index.v1+json
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: OK
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/api.ImageIndex'
|
|
|
|
"404":
|
|
|
|
description: not found
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
"500":
|
|
|
|
description: internal server error
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
summary: Get referrers for a given digest
|
2019-12-11 17:07:24 -05:00
|
|
|
/v2/{name}/tags/list:
|
|
|
|
get:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
description: List all image tags in a repository
|
|
|
|
parameters:
|
2023-10-20 07:30:56 -05:00
|
|
|
- description: repository name
|
2019-12-11 17:07:24 -05:00
|
|
|
in: path
|
|
|
|
name: name
|
|
|
|
required: true
|
|
|
|
type: string
|
2022-02-24 15:31:36 -05:00
|
|
|
- description: limit entries for pagination
|
|
|
|
in: query
|
|
|
|
name: "n"
|
|
|
|
required: true
|
|
|
|
type: integer
|
|
|
|
- description: last tag value for pagination
|
|
|
|
in: query
|
|
|
|
name: last
|
|
|
|
required: true
|
|
|
|
type: string
|
2019-12-11 17:07:24 -05:00
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: OK
|
|
|
|
schema:
|
2023-09-13 02:28:14 -05:00
|
|
|
$ref: '#/definitions/common.ImageTags'
|
2022-02-24 15:31:36 -05:00
|
|
|
"400":
|
|
|
|
description: bad request".
|
|
|
|
schema:
|
|
|
|
type: string
|
2019-12-11 17:07:24 -05:00
|
|
|
"404":
|
|
|
|
description: not found
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
summary: List image tags
|
2023-10-20 07:30:56 -05:00
|
|
|
/zot/auth/apikey:
|
|
|
|
delete:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
description: Revokes one current user API key based on given key ID
|
|
|
|
parameters:
|
|
|
|
- description: api token id (UUID)
|
|
|
|
in: query
|
|
|
|
name: id
|
|
|
|
required: true
|
|
|
|
type: string
|
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: ok
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
"400":
|
|
|
|
description: bad request
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
"401":
|
|
|
|
description: unauthorized
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
"500":
|
|
|
|
description: internal server error
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
summary: Revokes one current user API key
|
|
|
|
get:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
description: Get list of all API keys for a logged in user
|
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: ok
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
"401":
|
|
|
|
description: unauthorized
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
"500":
|
|
|
|
description: internal server error
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
summary: Get list of API keys for the current user
|
|
|
|
post:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
description: Can create an api key for a logged in user, based on the provided
|
|
|
|
label and scopes.
|
|
|
|
parameters:
|
|
|
|
- description: api token id (UUID)
|
|
|
|
in: body
|
|
|
|
name: id
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/api.APIKeyPayload'
|
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
responses:
|
|
|
|
"201":
|
|
|
|
description: created
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
"400":
|
|
|
|
description: bad request
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
"401":
|
|
|
|
description: unauthorized
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
"500":
|
|
|
|
description: internal server error
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
summary: Create an API key for the current user
|
|
|
|
/zot/auth/logout:
|
|
|
|
post:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
description: Logout by removing current session
|
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: ok".
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
"500":
|
|
|
|
description: internal server error".
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
summary: Logout by removing current session
|
2019-12-11 17:07:24 -05:00
|
|
|
swagger: "2.0"
|