Preview Gateway

GET /preview-gateway/status

Changed on

Request

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

Response

auto_upgradeboolean required

True if auto_upgrade is enabled in settings.

container_namestring required

Container name.

driftboolean required

True when image != expected_image and the container is present.

expected_imagestring required

The image the supervisor expects (from settings/constant). If this differs from image, the UI shows a "drift" badge.

healthstring required

Higher-level health label: "running" | "restarting" | "crash_looping" | "stopped" | "missing". UI should prefer this over running.

host_portinteger nullable

Host port that the ingress relay's :8080 is published on.

imagestring nullable

Image reference the container was created with (e.g. an immutable ghcr.io/gotempsh/temps-preview-gateway@sha256:… reference).

image_digeststring nullable

Image digest if available (e.g. sha256:…).

last_errorstring nullable

Error string Docker recorded for the container (e.g. startup failure).

last_exit_codeinteger nullable

Exit code of the last run, if the container is not currently running.

networkstring nullable

Trusted control network the gateway starts on. It is additionally attached to each per-sandbox isolated network during reconciliation.

next_setup_attempt_atstring nullable

ISO 8601 time Temps tries again on its own, when it has scheduled it.

presentboolean required

Whether the container exists at all.

restart_countinteger nullable

Number of times Docker has restarted the container.

runningboolean required

Whether the container is currently running.

setup_errorstring nullable

Why Temps could not set the gateway up the last time it tried, until an attempt succeeds. Names the failed step and Docker's answer, with credentials redacted. Usually why health is "missing".

setup_failed_atstring nullable

ISO 8601 time of that failure.

started_atstring nullable

ISO 8601 timestamp the container was started at, if running.

Changes

    • breaking

      removed the required property extensions from the response with the status

    • breaking

      removed the required property extensions from the response with the status

    • info

      added the optional property next_setup_attempt_at to the response with the status

    2 more changes in this revision