Docs
Live demo

Turn installation maintenance mode on

POST/api/v2/admin/maintenance
maintenance:manage capabilityConsole session only

Turn the installation maintenance mode on. Within four seconds every backend replica stops claiming jobs, publishing plan/apply events, starting scheduled jobs and running inline target cleanup. State-changing API requests answer 503 installation.maintenance. Running jobs finish normally. Reading, sign-in, SSO gate and Kubernetes TokenReview keep working. Requires the exact maintenance:manage installation capability of a verified identity. An API token needs allow_installation_admin and an owner who held maintenance:manage when the token was issued.

Request body application/json · InstallationMaintenanceRequest

Optional reason shown with the mode

Optional1 field
reasonstring

Why the mode is on. Shown to other administrators and in the maintenance CLI.

max length 500

Responses

200

Maintenance mode after the change

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

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

↑ ↓ to moveEnter to openEsc to close