OPNexusdocs

API: host-maintenance

GET /api/hosts/{host_id}/maintenance#

Status

Berechtigung maintenance.read (ansehen)

Parameter

host_id *pathstring (uuid)

Antwort 200

POST /api/hosts/{host_id}/maintenance/{operation_id}/acknowledge#

Acknowledge

Berechtigung maintenance.plan (vorbereiten)

Parameter

host_id *pathstring (uuid)
operation_id *pathstring (uuid)

Anfrage-Body Acknowledge

1 Felder anzeigen
FeldTypHinweise
confirm_name *stringminLength 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 *pathstring (uuid)
operation_id *pathstring (uuid)

Anfrage-Body Cancel

2 Felder anzeigen
FeldTypHinweise
confirm_name *stringminLength 1, maxLength 120
reason *stringminLength 3, maxLength 500

Antwort 200

POST /api/hosts/{host_id}/maintenance/carp-execute#

Carp Execute

Berechtigung maintenance.execute (ausrollen)

Parameter

host_id *pathstring (uuid)

Anfrage-Body Execute

4 Felder anzeigen
FeldTypHinweise
acknowledge_downtime *boolean
auto_revert_minutesinteger | null
confirm_name *stringminLength 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 *pathstring (uuid)

Antwort 200

POST /api/hosts/{host_id}/maintenance/check-updates#

Check Updates

Berechtigung maintenance.plan (vorbereiten)

Parameter

host_id *pathstring (uuid)

Antwort 202

POST /api/hosts/{host_id}/maintenance/execute#

Execute

Berechtigung maintenance.execute (ausrollen)

Parameter

host_id *pathstring (uuid)

Anfrage-Body Execute

4 Felder anzeigen
FeldTypHinweise
acknowledge_downtime *boolean
auto_revert_minutesinteger | null
confirm_name *stringminLength 1, maxLength 120
preview_id *string (uuid)

Antwort 200

POST /api/hosts/{host_id}/maintenance/preview#

Preview

Berechtigung maintenance.plan (vorbereiten)

Parameter

host_id *pathstring (uuid)

Anfrage-Body app__routers__maintenance__Preview

1 Felder anzeigen
FeldTypHinweise
action *"reboot" | "update" | "major_update" | "firmware_rollback"

Antwort 200

GET /api/hosts/{host_id}/maintenance/progress#

Progress

Berechtigung maintenance.read (ansehen)

Parameter

host_id *pathstring (uuid)

Antwort 200

GET /api/hosts/{host_id}/maintenance/schedule#

List Scheduled

Berechtigung maintenance.read (ansehen)

Parameter

host_id *pathstring (uuid)

Antwort 200

POST /api/hosts/{host_id}/maintenance/schedule#

Create Scheduled

Berechtigung maintenance.execute (ausrollen)

Parameter

host_id *pathstring (uuid)

Anfrage-Body Schedule

5 Felder anzeigen
FeldTypHinweise
acknowledge_unattended *boolean
action *"reboot" | "update" | "major_update"
auto_verifyboolean default: false
carp_handoverboolean 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 *pathstring (uuid)
schedule_id *pathstring (uuid)

Antwort 200