Skip to main content

list_flight_versions

List every immutable version of a Flight, newest first. Each update to source_code, requirements_txt, config, access_token_name, flight_secret_names, or the chart in metadata produces a fresh version. Sending the same chart again does not. Updates to name or schedule_cron are metadata-only and do not appear here.

Description​

Use list_flight_versions to browse what changed between versions, or to find the version a specific run executed. The corresponding SQL function is MD_LIST_FLIGHT_VERSIONS.

Input parameters​

ParameterTypeRequiredDescription
idstring (UUID)YesThe Flight UUID.
limitintegerNoMax results to return (default: 50, max: 50).
offsetintegerNoNumber of versions to skip, for paging back through history.

Output schema​

{
"success": boolean,
"versions": [
{
"version_id": string,
"flight_id": string,
"version": number,
"created_at": string,
"access_token_name": string,
"flight_secret_names": string[],
"config": { "<key>": "<value>" },
"max_runtime_sec": number,
"instance_type": string|null
}
],
"count": number,
"error": string
}

Example usage​

{ "id": "80000000-0000-0000-0000-000000000001" }