Trigger health check for OCI registry
POST
/api/v1/registries/oci/{id}/health-check
const url = 'http://localhost:3000/api/v1/registries/oci/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/health-check';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/registries/oci/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/health-check \ --header 'X-API-Key: <X-API-Key>'Triggers a manual health check for an OCI registry. Checks connectivity using the OCI Distribution Spec /v2/ endpoint.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” id
required
string format: uuid
OCI registry UUID
Responses
Section titled “ Responses ”Health check completed successfully
Media type application/json
object
healthy
required
Whether the registry is healthy
boolean
status
required
Health status of the registry
string
error
Error message if the health check failed
string
responseTimeMs
Response time in milliseconds
number
Example
{ "healthy": true, "status": "healthy", "error": "Connection timed out (10s)", "responseTimeMs": 150}Unauthorized
Forbidden
Forbidden — caller lacks required permission
OCI registry not found
Application service unavailable