Zum Hauptinhalt springen

Create a Registry

POST /v2/projects/{projectId}/registries/
v2
POST
container-create-registry

Request

  • projectIdstring (uuid)
    required

    ID of the Project to create a Registry for.

Responses

application/json

Created

  • credentialsobject
    • usernamestring
      required

      Your registry username.

    • validboolean
      required

      Status of the credentials.

  • descriptionstring
    required
  • idstring (uuid)
    required
  • projectIdstring (uuid)
    required
  • uristring
    required

Usage examples

$ curl \
--fail \
--location \
-X POST \
-d '{"credentials":{"password":"password","username":"username"},"description":"DockerHub","uri":"index.docker.io"}' \
-H "Authorization: Bearer $MITTWALD_API_TOKEN" \
-H 'Content-Type: application/json' \
https://api.mittwald.de/v2/projects/f0f86186-0a5a-45b2-aa33-502777496347/registries