latestOpenAPI 3.1.02026-08-23100133183.1 KB

0d66c7340876

Serverless Containers

Add registry credentials

post/v1/container-registry-credentials

Request body

namestring required

Name of the registry credential

type'verda' | 'gcr' | 'dockerhub' | 'ghcr' | 'aws-ecr' | 'scaleway' | 'custom' required

Type of the container registry

usernamestring

Username for the Docker Hub registry, if selected type is DockerHub

access_tokenstring

Access token for the registry, if selected type is DockerHub or Github

service_account_keystring

Service account key for the Google Cloud Registry (Google Artifact Registry), if selected type is GCR

docker_config_jsonstring

Docker config JSON for the custom registry, if selected type is Custom

access_key_idstring

Access key ID for the AWS Elastic Container Registry, if selected type is AWSECR

secret_access_keystring

Secret access key for the AWS Elastic Container Registry, if selected type is AWSECR

regionstring

Region for the AWS Elastic Container Registry, if selected type is AWSECR

ecr_repostring

Repository for the AWS Elastic Container Registry, if selected type is AWSECR

scaleway_domainstring

Region-specific domain, if selected type is Scaleway

scaleway_uuidstring

API secret key, if selected type is Scaleway

Example request

{
  "name": "dockerhub-credentials",
  "type": "dockerhub",
  "username": "JADES-GS-z14-0",
  "access_token": "dckr_pat_mRO0qZWQjwXm4KOWkUvk9w_ByP0",
  "service_account_key": "{\n  \"type\": \"service_account\",\n  \"project_id\": \"clever-overview-111111-b1\",\n  \"private_key_id\": \"5434a8e7108656c582b4567890b77e9eaa7501c5\",\n  \"private_key\": \"-----BEGIN PRIVATE KEY-----\nMIIEvgIBADANBg...1yAFKgXXFmIVqXPC1X\n-----END PRIVATE KEY-----\n\",\n  \"client_email\": \"test-account@clever-overview-111111-b1.iam.gserviceaccount.com\",\n  \"client_id\": \"107932416123456636077\",\n  \"auth_uri\": \"https://accounts.google.com/o/oauth2/auth\",\n  \"token_uri\": \"https://oauth2.googleapis.com/token\",\n  \"auth_provider_x509_cert_url\": \"https://www.googleapis.com/oauth2/v1/certs\",\n  \"client_x509_cert_url\": \"https://www.googleapis.com/robot/v1/metadata/x509/test-account%40clever-overview-111111-b1.iam.gserviceaccount.com\",\n  \"universe_domain\": \"googleapis.com\"\n}",
  "docker_config_json": "{\n  \"auths\": {\n    \"ghcr.io\": {\n      \"auth\": \"dXNlcjpwYXNzd29yZA==\"\n    }\n  }\n}",
  "access_key_id": "AKIAEXAMPLE123456",
  "secret_access_key": "wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY",
  "region": "eu-north-1",
  "ecr_repo": "887841266746.dkr.ecr.eu-north-1.amazonaws.com",
  "scaleway_domain": "rg.nl-ams.scw.cloud",
  "scaleway_uuid": "ea55b6d2-c789-4b31-88b1-f77ba6ff7cd6"
}