approval-sessions:heartbeat

Extend an existing approval session to --ttl_seconds from now (at least 60). Without --session_id, open a new session first, then refresh it. An unknown, someone else's or expired session fails. Returns `approval_session` with `session_id`, `status`, `last_heartbeat_at`, `expires_at`, `user_id`, `created_at` and `updated_at`, plus `opened_session_id` when opened. A call sooner than --min_touch_interval_seconds after the last one returns the session unchanged.

Reference for flywheel approval-sessions:heartbeat.

Command Group

Approvals & Budgets Commands

Summary

Extend an existing approval session to --ttl_seconds from now (at least 60). Without --session_id, open a new session first, then refresh it. An unknown, someone else's or expired session fails. Returns approval_session with session_id, status, last_heartbeat_at, expires_at, user_id, created_at and updated_at, plus opened_session_id when opened. A call sooner than --min_touch_interval_seconds after the last one returns the session unchanged.

Effect

changes data

Usage

flywheel approval-sessions:heartbeat [FLAGS]

Required flags

None.

Optional flags

FlagValueDefaultChoicesDescription
--session_idstringapproval_session.session_id from approval-sessions:heartbeat or approval-sessions:list. Unknown or not yours: error. Omitted: a new session is opened first, and its ID is returned as opened_session_id.
--ttl_secondsintegerSeconds the session stays active from this call. Under 60 is raised to 60; no maximum. Omitted: the server default (1800 unless the server sets another).
--min_touch_interval_secondsintegerSeconds that must pass since the last refresh before this call extends the session; a sooner call returns it unchanged. 0 always extends. Omitted: the server default (15).
--formatFORMATjson, tsv, csv, tableOutput format for command results.
--envPROFILESelect a CLI profile; unconfigured default requires FLYWHEEL_BASE_URL.
--outPATHWrite output to a file path, or use - for stdout.
--openOpen browser-bound URLs when supported.
--no-retryDisable transient-error retries.
--retry-maxNMaximum transient-error retry attempts.
--waitBlock on async operations until a terminal state is reached.
--wait-timeoutSECONDS600Seconds to wait for --wait before timing out. Defaults to 600.
--allow-selfAllow mutating the currently active credential.
--timeoutSECONDSSet the per-request timeout budget in seconds.
--idempotency-keyKEYReuse an Idempotency-Key so ambiguous write failures can be retried with the same key.
--forceForce safety-gated operations where supported.
--yesConfirm forced compute:release-all --force. Other runtime commands do not read --yes.
--debugPrint structured request debugging with secrets masked.
--verbosePrint verbose progress for long-running operations.
-h, --helpShow this help.

Examples

Heartbeat.

flywheel approval-sessions:heartbeat

Output

Default format: json.

FieldType
opened_session_id (optional)string | null
approval_sessionobject | null