Create global OCI registry
const url = 'http://localhost:3000/api/v1/global-registries/oci';const options = { method: 'POST', headers: {'X-API-Key': '<X-API-Key>', 'Content-Type': 'application/json'}, body: '{"name":"docker-hub","description":"Docker Hub public registry","url":"https://registry-1.docker.io","registryType":"GENERIC","authType":"NONE","credential":"username:password","verifyTls":true,"enabled":true,"mandatory":false,"priority":0,"repositories":["library/nginx","team/app"]}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url http://localhost:3000/api/v1/global-registries/oci \ --header 'Content-Type: application/json' \ --header 'X-API-Key: <X-API-Key>' \ --data '{ "name": "docker-hub", "description": "Docker Hub public registry", "url": "https://registry-1.docker.io", "registryType": "GENERIC", "authType": "NONE", "credential": "username:password", "verifyTls": true, "enabled": true, "mandatory": false, "priority": 0, "repositories": [ "library/nginx", "team/app" ] }'Creates a new global OCI registry accessible to all tenants. Requires Super Admin privileges.
Authorizations
Section titled “Authorizations ”Request Body required
Section titled “Request Body required ”object
Unique name for the registry
Example
docker-hubDescription of the registry purpose
Example
Docker Hub public registryRegistry URL
Example
https://registry-1.docker.ioRegistry type/provider
Authentication type
Credential for authentication - will be encrypted. For BASIC auth this MUST be “username:password”. For TOKEN auth it is the raw token.
Example
username:passwordWhether to verify TLS certificates
Whether the registry is enabled
Whether this registry is mandatory for all tenants
Priority in the combined registry list (lower is higher priority)
Example
0Explicit repository list. When provided, sync uses these repositories directly and skips /v2/_catalog discovery.
Example
[ "library/nginx", "team/app"]Responses
Section titled “ Responses ”OCI registry created successfully
object
Registry unique identifier
Unique name for the registry
Description of the registry purpose
Registry URL
Registry type/provider
Authentication type
Whether credentials are configured
Whether to verify TLS certificates
Last health check timestamp
Current health status
Last sync timestamp
Last sync error message
Sync interval in minutes
Whether the registry is enabled
Whether this registry is mandatory for all tenants
Priority in the combined registry list
Explicit repository list used for sync. When non-empty, /v2/_catalog discovery is skipped.
Creation timestamp
Last update timestamp
Example
{ "id": "550e8400-e29b-41d4-a716-446655440000", "name": "docker-hub", "description": "Docker Hub public registry", "url": "https://registry-1.docker.io", "registryType": "GENERIC", "authType": "NONE", "hasCredentials": false, "verifyTls": true, "healthStatus": "healthy", "syncIntervalMinutes": 60, "enabled": true, "mandatory": false, "priority": 0, "repositories": []}Invalid input data
Unauthorized
Forbidden - Super Admin required
Registry with this name already exists