Docs
Live demo
GET/api/v2/admin/upgrade/preflight
Installation administratorConsole session only

Build the upgrade preflight report of the installation from the Principal metadata database: the data the transitions of the simplification program will touch, per section with status ok, attention or unknown, counts, up to 20 sample identifiers and an operator note. Targets are never contacted. A section whose source cannot be read is unknown and the response is still 200. The upgrade-preflight command of the backend image prints the same document. Installation-wide: requires the exact health:read installation capability or an organization administrator membership.

Responses

200

Upgrade preflight report

UpgradePreflightResponse · 6 fields
generated_atstring · date-timerequired
versionstringrequired

Build version of the binary that built the report.

schema_versioninteger · int64required

Applied metadata database migration. Null when it could not be read.

can be null
schema_dirtybooleanrequired

Whether the last migration was left incomplete. Null when it could not be read.

can be null
statusstring (UpgradePreflightStatus)required

ok: no remainders. Attention: remainders exist, the note says what to do. Unknown: a source could not be read, the section claims nothing.

okattentionunknown
sectionsarray of UpgradePreflightSectionrequired
7 fields
idstringrequired

Stable section identifier, for example jobs, kubernetes or identities.

titlestringrequired
statusstring (UpgradePreflightStatus)required

ok: no remainders. Attention: remainders exist, the note says what to do. Unknown: a source could not be read, the section claims nothing.

okattentionunknown
countsmap of string → integer · int64required

Named counts. The keys depend on the section.

samplesarray of stringrequired

Up to 20 identifiers of remainders as "<count key> <kind>:<id>". Never secrets.

max items 20
detailsmap of string → stringrequired

Non-numeric facts such as the oldest and newest row of a table (RFC 3339).

notestringrequired

What the remainders mean and what the operator should do (Russian).

401

Authentication required

403

Installation administrator required (authorization.denied). An API token needs allow_installation_admin (code auth.api_token_not_allowed, details.reason=api_token_installation_admin_not_allowed).

Common errors: 429 504. They mean the same for every operation, see Errors.

↑ ↓ to moveEnter to openEsc to close