Enable global OCI registry
const url = 'http://localhost:3000/api/v1/global-registries/oci/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/enable';const options = {method: 'POST', headers: {'X-API-Key': '<X-API-Key>'}};
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/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/enable \ --header 'X-API-Key: <X-API-Key>'Enables a global OCI registry. Requires Super Admin privileges.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ”OCI registry UUID
Responses
Section titled “ Responses ”OCI registry enabled 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": []}Unauthorized
Forbidden - Super Admin required
OCI registry not found