Create a new Docker registry credential for the company. The credential is used to authenticate with private Docker registries when pulling images for deployments. The secret is encrypted before storage and never returned in API responses.
API key authentication. Pass your API key as a Bearer token in the Authorization header.
Human-readable name for the Docker registry credential
1 - 255"My Docker Hub"
Username or access key used to authenticate with the Docker registry
^(?=.{1,39}$)[A-Za-z0-9](?:[A-Za-z0-9._-]*[A-Za-z0-9])?$"my-docker-user"
Password or access token used to authenticate with the Docker registry. Stored encrypted at rest.
^.{8,128}$"my-secret-token"
Docker registry provider. dockerHub - Docker Hub. gcr - Google Container Registry. ecr - Amazon Elastic Container Registry. github - GitHub Container Registry. gitlab - GitLab Container Registry. digitalOcean - DigitalOcean Container Registry. custom - a self-hosted or third-party registry.
gcr, ecr, dockerHub, github, gitlab, digitalOcean, custom "dockerHub"
Default Response
Unique identifier for the Docker registry credential
^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"fb5e5168-4281-4bec-94c5-0d1584e9e657"
Identifier of the company that owns this credential
^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"fb5e5168-4281-4bec-94c5-0d1584e9e657"
Human-readable name for the Docker registry credential
"My Docker Hub"
Docker registry provider. dockerHub - Docker Hub. gcr - Google Container Registry. ecr - Amazon Elastic Container Registry. github - GitHub Container Registry. gitlab - GitLab Container Registry. digitalOcean - DigitalOcean Container Registry. custom - a self-hosted or third-party registry.
gcr, ecr, dockerHub, github, gitlab, digitalOcean, custom "dockerHub"
Username or access key used to authenticate with the Docker registry
"my-docker-user"
Timestamp when the credential was created, in ISO 8601 format
^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$"2025-01-30T00:00:00.000Z"
Timestamp when the credential was last modified, in ISO 8601 format
^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$"2025-01-30T00:00:00.000Z"