Docs
Live demo

Get installation maintenance mode

GET/api/v2/admin/maintenance
Installation administratorConsole session only

Return the installation maintenance mode and the unfinished jobs: waiting jobs, running attempts with a lease ticket, running attempts of legacy workers without a ticket (they need an operator decision through the maintenance CLI) and running records of in-flight API requests. start_blocked reports the backend replica that answered: it refuses to start its work while legacy claims remain.

Responses

200

Maintenance mode and unfinished jobs

InstallationMaintenanceResponse · 6 fields
enabledbooleanrequired
reasonstring
changed_bystring

Who changed the mode last (identity:<id> for the API, cli:<host> for the maintenance CLI).

changed_atstring · date-time
start_blockedbooleanrequired

The answering backend replica refuses to start its work while legacy claims remain.

Unfinished jobs of the installation by registry state.

4 fields
waitingintegerrequired

Pending and queued jobs. The next worker takes them with a lease ticket.

min 0
running_fencedintegerrequired

Running attempts that hold a lease ticket.

min 0
running_legacy_claimsintegerrequired

Running attempts of legacy workers without a lease ticket. Each needs an operator decision.

min 0
running_request_recordsintegerrequired

Running records of in-flight API requests. Their requests finish them.

min 0
401

Authentication required

403

Exact health:read installation scope or organization administrator role required. 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