External Services

Replace a managed service's healthcheck overrides

Changed on

Send null for a value to inherit the instance default. Applies when the container is next recreated; nothing running changes.

put/external-services/{id}/healthcheck

Request

  • Base URL
    /api (relative, and the document was published on a file host, not at the API’s origin)
  • Auth
    HTTP bearer

Path parameters

idinteger required

External service ID

Request body

interval_secsinteger nullable

Seconds between checks once healthy (5–3600).

retriesinteger nullable

Consecutive failures that make the container unhealthy (1–10).

start_interval_secsinteger nullable

Seconds between checks while starting (1–60).

start_period_secsinteger nullable

Seconds after start during which failures do not count (0–600).

timeout_secsinteger nullable

Seconds one check may run (1–60, and shorter than the interval).

Example request

{
  "interval_secs": 60,
  "retries": 3,
  "start_interval_secs": 2,
  "start_period_secs": 90,
  "timeout_secs": 5
}

Response

Saved; applies when the container is recreated

engine'postgres' | 'redis' | 'mariadb' | 'mongodb' | 'rustfs' | 'minio' nullable

Engines whose containers Temps manages and may need to replace.

overrides_ignored_reasonstring nullable

Why this service's overrides are set aside: they no longer combine with the instance default, so effective is what the container gets without them. Change or clear them to use them again.

pending_recreateboolean required

The running container differs from effective (as this host's Docker would store it) until it is recreated. false when either is unknown.

readiness_wait_secsinteger nullable

How long Temps waits for a new container of this engine to become healthy; a check has to land inside it.

service_idinteger required
service_namestring required
service_typestring required
start_interval_supportedboolean nullable

false: this host's Docker ignores the start interval, so the steady-state interval stays at the start interval. Absent when not known yet.

Example response

{
  "effective": {
    "timings": {
      "interval_secs": 30,
      "retries": 3,
      "start_interval_secs": 2,
      "start_period_secs": 90,
      "timeout_secs": 5
    }
  },
  "inherited": {
    "timings": {
      "interval_secs": 30,
      "retries": 3,
      "start_interval_secs": 2,
      "start_period_secs": 90,
      "timeout_secs": 5
    }
  },
  "overrides": {
    "interval_secs": 60,
    "retries": 3,
    "start_interval_secs": 2,
    "start_period_secs": 90,
    "timeout_secs": 5
  },
  "running": {
    "interval_secs": 30,
    "retries": 3,
    "start_interval_secs": 2,
    "start_period_secs": 90,
    "timeout_secs": 5
  }
}

Changes