Skip to main content
GET
Get clock sync status
Query the current status of the sandbox daemon’s built-in wall-clock syncer. For details on how CLOCK_MONOTONIC, CLOCK_BOOTTIME, and CLOCK_REALTIME behave across suspend and resume, see How clocks work in sandboxes.

Example request

Set SANDBOX_URL to the sandbox_url returned by Get Sandbox and authenticate with your Tensorlake API key:
This requests the current wall-clock sync status from the sandbox daemon with Cache-Control: no-store.

Response fields

The response describes both whether host UTC syncing is active and whether this runtime lets you change it:
  • enabled: true when host wall-clock syncing is active (including runtimes where the host clock is authoritative, such as gVisor), or false when disabled or unavailable
  • configurable: true on VM sandboxes with /dev/ptp0 (KVM virtual PTP) and CAP_SYS_TIME, or false when mutations are rejected with 501 Not Implemented
  • reason: present when configurable is false to explain why wall-clock sync can’t be toggled

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Response

Current wall-clock sync status

enabled
boolean
required

Whether host UTC wall-clock syncing is currently active. Always true on runtimes where the host clock is authoritative (such as gVisor).

configurable
boolean
required

Whether this runtime allows toggling wall-clock sync via PUT /api/v1/clock-sync or /run/tensorlake/guest.sock.

reason
string

Human-readable explanation present when configurable is false.