curl --request PUT \
--url https://api.qovery.com/organization/{organizationId}/containerRegistry/{containerRegistryId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"kind": "ECR",
"config": {
"access_key_id": "<string>",
"secret_access_key": "<string>",
"region": "<string>",
"scaleway_access_key": "<string>",
"scaleway_secret_key": "<string>",
"scaleway_project_id": "<string>",
"json_credentials": "<string>",
"username": "<string>",
"password": "<string>",
"role_arn": "<string>",
"azure_tenant_id": "<string>",
"azure_subscription_id": "<string>"
},
"description": "<string>",
"url": "<string>"
}
'{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"name": "<string>",
"kind": "ECR",
"description": "<string>",
"url": "<string>",
"cluster": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>"
},
"associated_services_count": 123,
"config": {
"username": "<string>",
"region": "<string>",
"scaleway_access_key": "<string>",
"scaleway_project_id": "<string>",
"access_key_id": "<string>",
"role_arn": "<string>",
"azure_tenant_id": "<string>",
"azure_subscription_id": "<string>",
"azure_application_id": "<string>",
"azure_application_object_id": "<string>"
}
}curl --request PUT \
--url https://api.qovery.com/organization/{organizationId}/containerRegistry/{containerRegistryId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"kind": "ECR",
"config": {
"access_key_id": "<string>",
"secret_access_key": "<string>",
"region": "<string>",
"scaleway_access_key": "<string>",
"scaleway_secret_key": "<string>",
"scaleway_project_id": "<string>",
"json_credentials": "<string>",
"username": "<string>",
"password": "<string>",
"role_arn": "<string>",
"azure_tenant_id": "<string>",
"azure_subscription_id": "<string>"
},
"description": "<string>",
"url": "<string>"
}
'{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"name": "<string>",
"kind": "ECR",
"description": "<string>",
"url": "<string>",
"cluster": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>"
},
"associated_services_count": 123,
"config": {
"username": "<string>",
"region": "<string>",
"scaleway_access_key": "<string>",
"scaleway_project_id": "<string>",
"access_key_id": "<string>",
"role_arn": "<string>",
"azure_tenant_id": "<string>",
"azure_subscription_id": "<string>",
"azure_application_id": "<string>",
"azure_application_object_id": "<string>"
}
}JWT tokens should be used with OIDC account (human to machine). JWT tokens used by the Qovery console to communicate with the API have a TTL. Curl Example ' curl https://console.qovery.com/organization -H "Authorization: Bearer $qovery_token" '
Organization ID
Container Registry ID
The type of your container registry
ECR, SCALEWAY_CR, DOCKER_HUB, GITHUB_CR, GITHUB_ENTERPRISE_CR, GITLAB_CR, PUBLIC_ECR, DOCR, GENERIC_CR, GCP_ARTIFACT_REGISTRY, AZURE_CR This field is dependent of the container registry kind:
ECR needs in the config: region, access_key_id, secret_access_keySCALEWAY_CR needs in the config: region, scaleway_access_key, scaleway_secret_keyGCP_ARTIFACT_REGISTRY needs in the config: region, json_credentialsDOCKER_HUB needs in the config (optional): username, passwordGITHUB_CR needs in the config (optional): username, passwordGITLAB_CR needs in the config (optional): username, passwordPUBLIC_ECR doesn't need credentials infoGENERIC_CR needs in the config (optional): username, passwordDOCR is not supported anymoreShow child attributes
URL of the container registry:
DOCKER_HUB: it must be https://docker.io (default with 'https://docker.io' if no url provided for DOCKER_HUB)GITHUB_CR: it must be https://ghcr.io (default with 'https://ghcr.io' if no url provided for GITHUB_CR)GITLAB_CR: it must be https://registry.gitlab.com (default with 'https://registry.gitlab.com' if no url provided for GITLAB_CR)https://Edited the container registry
The type of your container registry
ECR, SCALEWAY_CR, DOCKER_HUB, GITHUB_CR, GITHUB_ENTERPRISE_CR, GITLAB_CR, PUBLIC_ECR, DOCR, GENERIC_CR, GCP_ARTIFACT_REGISTRY, AZURE_CR URL of the container registry
Show child attributes
The number of services using this container registry
Show child attributes
Was this page helpful?