Skip to main content
POST
/
registries
Add container registry
curl --request POST \
  --url https://api.bunny.net/mc/registries \
  --header 'AccessKey: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "displayName": "<string>",
  "type": "DockerHub",
  "passwordCredentials": {
    "userName": "<string>",
    "password": "<string>"
  }
}
'
{
  "id": 123,
  "error": "<string>",
  "status": "Saved"
}

Authorizations

AccessKey
string
header
required

Please enter a valid personal API key.

Body

displayName
string
required

Container registry display name

Minimum string length: 1
type
enum<string>
Available options:
DockerHub,
GitHub
passwordCredentials
object

Password credentials for container registry

Response

Container registry was successfully added.

id
integer<int64> | null
error
string | null
status
enum<string>
Available options:
Saved,
SecretsValidationFailed,
UnknownErrorOccured,
NotFound,
InvalidInput