OPNexusdocs

API: host-maintenance

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

Status

Permission maintenance.read (look)

Parameters

host_id *pathstring (uuid)

Response 200

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

Acknowledge

Permission maintenance.plan (prepare)

Parameters

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

Request body Acknowledge

Show 1 fields
FieldTypeNotes
confirm_name *stringminLength 1, maxLength 120

Response 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.

Permission maintenance.plan (prepare)

Parameters

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

Request body Cancel

Show 2 fields
FieldTypeNotes
confirm_name *stringminLength 1, maxLength 120
reason *stringminLength 3, maxLength 500

Response 200

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

Carp Execute

Permission maintenance.execute (roll out)

Parameters

host_id *pathstring (uuid)

Request body Execute

Show 4 fields
FieldTypeNotes
acknowledge_downtime *boolean
auto_revert_minutesinteger | null
confirm_name *stringminLength 1, maxLength 120
preview_id *string (uuid)

Response 200

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

Carp Preview

Permission maintenance.plan (prepare)

Parameters

host_id *pathstring (uuid)

Response 200

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

Check Updates

Permission maintenance.plan (prepare)

Parameters

host_id *pathstring (uuid)

Response 202

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

Execute

Permission maintenance.execute (roll out)

Parameters

host_id *pathstring (uuid)

Request body Execute

Show 4 fields
FieldTypeNotes
acknowledge_downtime *boolean
auto_revert_minutesinteger | null
confirm_name *stringminLength 1, maxLength 120
preview_id *string (uuid)

Response 200

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

Preview

Permission maintenance.plan (prepare)

Parameters

host_id *pathstring (uuid)

Request body app__routers__maintenance__Preview

Show 1 fields
FieldTypeNotes
action *"reboot" | "update" | "major_update" | "firmware_rollback"

Response 200

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

Progress

Permission maintenance.read (look)

Parameters

host_id *pathstring (uuid)

Response 200

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

List Scheduled

Permission maintenance.read (look)

Parameters

host_id *pathstring (uuid)

Response 200

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

Create Scheduled

Permission maintenance.execute (roll out)

Parameters

host_id *pathstring (uuid)

Request body Schedule

Show 5 fields
FieldTypeNotes
acknowledge_unattended *boolean
action *"reboot" | "update" | "major_update"
auto_verifyboolean default: false
carp_handoverboolean default: false
run_at *string (date-time)

Response 200

DELETE /api/hosts/{host_id}/maintenance/schedule/{schedule_id}#

Cancel Scheduled

Permission maintenance.execute (roll out)

Parameters

host_id *pathstring (uuid)
schedule_id *pathstring (uuid)

Response 200