API: host-maintenance
GET /api/hosts/{host_id}/maintenance#
Status
Berechtigung maintenance.read (ansehen)
Parameter
host_id * | path | string (uuid) |
Antwort 200
POST /api/hosts/{host_id}/maintenance/{operation_id}/acknowledge#
Acknowledge
Berechtigung maintenance.plan (vorbereiten)
Parameter
host_id * | path | string (uuid) | |
operation_id * | path | string (uuid) |
Anfrage-Body Acknowledge
1 Felder anzeigen
| Feld | Typ | Hinweise |
|---|---|---|
confirm_name * | string | minLength 1, maxLength 120 |
Antwort 200
POST /api/hosts/{host_id}/maintenance/{operation_id}/cancel#
Cancel
Escape hatch for an operation whose claimed target state never became true (e.g. OPNsense's CARP maintenance toggle accepted the request but the role switch itself never completed). Unlike acknowledge, this does NOT assert success — it only closes the record so the host/cluster stops being blocked, and requires a human-written reason for the audit trail.
Berechtigung maintenance.plan (vorbereiten)
Parameter
host_id * | path | string (uuid) | |
operation_id * | path | string (uuid) |
Anfrage-Body Cancel
2 Felder anzeigen
| Feld | Typ | Hinweise |
|---|---|---|
confirm_name * | string | minLength 1, maxLength 120 |
reason * | string | minLength 3, maxLength 500 |
Antwort 200
POST /api/hosts/{host_id}/maintenance/carp-execute#
Carp Execute
Berechtigung maintenance.execute (ausrollen)
Parameter
host_id * | path | string (uuid) |
Anfrage-Body Execute
4 Felder anzeigen
| Feld | Typ | Hinweise |
|---|---|---|
acknowledge_downtime * | boolean | |
auto_revert_minutes | integer | null | |
confirm_name * | string | minLength 1, maxLength 120 |
preview_id * | string (uuid) |
Antwort 200
POST /api/hosts/{host_id}/maintenance/carp-preview#
Carp Preview
Berechtigung maintenance.plan (vorbereiten)
Parameter
host_id * | path | string (uuid) |
Antwort 200
POST /api/hosts/{host_id}/maintenance/check-updates#
Check Updates
Berechtigung maintenance.plan (vorbereiten)
Parameter
host_id * | path | string (uuid) |
Antwort 202
POST /api/hosts/{host_id}/maintenance/execute#
Execute
Berechtigung maintenance.execute (ausrollen)
Parameter
host_id * | path | string (uuid) |
Anfrage-Body Execute
4 Felder anzeigen
| Feld | Typ | Hinweise |
|---|---|---|
acknowledge_downtime * | boolean | |
auto_revert_minutes | integer | null | |
confirm_name * | string | minLength 1, maxLength 120 |
preview_id * | string (uuid) |
Antwort 200
POST /api/hosts/{host_id}/maintenance/preview#
Preview
Berechtigung maintenance.plan (vorbereiten)
Parameter
host_id * | path | string (uuid) |
Anfrage-Body app__routers__maintenance__Preview
1 Felder anzeigen
| Feld | Typ | Hinweise |
|---|---|---|
action * | "reboot" | "update" | "major_update" | "firmware_rollback" |
Antwort 200
GET /api/hosts/{host_id}/maintenance/progress#
Progress
Berechtigung maintenance.read (ansehen)
Parameter
host_id * | path | string (uuid) |
Antwort 200
GET /api/hosts/{host_id}/maintenance/schedule#
List Scheduled
Berechtigung maintenance.read (ansehen)
Parameter
host_id * | path | string (uuid) |
Antwort 200
POST /api/hosts/{host_id}/maintenance/schedule#
Create Scheduled
Berechtigung maintenance.execute (ausrollen)
Parameter
host_id * | path | string (uuid) |
Anfrage-Body Schedule
5 Felder anzeigen
| Feld | Typ | Hinweise |
|---|---|---|
acknowledge_unattended * | boolean | |
action * | "reboot" | "update" | "major_update" | |
auto_verify | boolean | default: false |
carp_handover | boolean | default: false |
run_at * | string (date-time) |
Antwort 200
DELETE /api/hosts/{host_id}/maintenance/schedule/{schedule_id}#
Cancel Scheduled
Berechtigung maintenance.execute (ausrollen)
Parameter
host_id * | path | string (uuid) | |
schedule_id * | path | string (uuid) |