List OCI registries
const url = 'http://localhost:3000/api/v1/registries/oci?name=container&enabled=true®istryType=GENERIC&authType=NONE&search=docker&limit=20&offset=0&cursor=550e8400-e29b-41d4-a716-446655440000';const options = {method: 'GET', 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 GET \ --url 'http://localhost:3000/api/v1/registries/oci?name=container&enabled=true®istryType=GENERIC&authType=NONE&search=docker&limit=20&offset=0&cursor=550e8400-e29b-41d4-a716-446655440000' \ --header 'X-API-Key: <X-API-Key>'Retrieves a list of OCI registries for the current organization.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Query Parameters
Section titled “Query Parameters ”Example
containerFilter by registry name (partial match)
Example
trueFilter by enabled status
Example
GENERICFilter by registry type
Example
BASICFilter by authentication type
Example
dockerSearch across name, URL, and description
Example
20Maximum number of items to return
Example
0Number of items to skip
Example
550e8400-e29b-41d4-a716-446655440000Cursor for pagination (registry ID)
Responses
Section titled “ Responses ”OCI registries retrieved successfully
object
List of OCI registries
object
Unique identifier
Organization ID that owns this registry
Registry name
Registry description
OCI registry URL
Registry type
Authentication type
Whether credentials are configured
Whether TLS verification is enabled
Last health check timestamp
Health status (healthy, unhealthy, unknown)
Last sync timestamp
Last sync error message
Sync interval in minutes
Whether the registry is enabled
Explicit repository list used for sync. When non-empty, /v2/_catalog discovery is skipped.
Creation timestamp
Last update timestamp
Total number of registries matching the query
Number of items returned
Number of items skipped
Whether there are more items
Cursor for fetching next page
Example
{ "items": [ { "id": "550e8400-e29b-41d4-a716-446655440000", "organizationId": "550e8400-e29b-41d4-a716-446655440001", "name": "my-container-registry", "description": "Production container images", "url": "https://registry.example.com", "registryType": "GENERIC", "authType": "NONE", "hasCredentials": false, "verifyTls": true, "lastHealthCheck": "2024-01-15T10:30:00Z", "healthStatus": "healthy", "lastSyncAt": "2024-01-15T10:30:00Z", "syncIntervalMinutes": 60, "enabled": true, "repositories": [], "createdAt": "2024-01-01T00:00:00Z", "updatedAt": "2024-01-15T10:30:00Z" } ], "total": 10, "limit": 20, "offset": 0, "hasMore": false, "nextCursor": "550e8400-e29b-41d4-a716-446655440000"}Unauthorized
Forbidden