OPNexusdocs

API: maintenance-windows

GET /api/maintenance-windows#

List Windows

Permission maintenance.read (look)

Response 200

POST /api/maintenance-windows#

Create Window

Permission maintenance.execute (roll out)

Request body WindowIn

Show 13 fields
FieldTypeNotes
duration_minutes *integerminimum 15, maximum 1440
enabledboolean default: true
expected_versionstring | null
month_dayinteger | null
month_mode"nth_weekday" | "day" | null
month_nthinteger | null
month_weekdayinteger | null
name *stringminLength 1, maxLength 120
recurrence *"weekly" | "monthly"
start_cutoff_minutesinteger default: 60 · minimum 5, maximum 1440
start_time *string
timezone *stringminLength 1, maxLength 64
weekdaysinteger[]

Response 201

GET /api/maintenance-windows/{window_id}#

Get Window

Permission maintenance.read (look)

Parameters

window_id *pathstring (uuid)

Response 200

PUT /api/maintenance-windows/{window_id}#

Update Window

Changing a window changes the fingerprint of every plan that uses it, so an activated automatic start stops until the plan is activated again (see rollout_service.fingerprint).

Permission maintenance.execute (roll out)

Parameters

window_id *pathstring (uuid)

Request body WindowIn

Show 13 fields
FieldTypeNotes
duration_minutes *integerminimum 15, maximum 1440
enabledboolean default: true
expected_versionstring | null
month_dayinteger | null
month_mode"nth_weekday" | "day" | null
month_nthinteger | null
month_weekdayinteger | null
name *stringminLength 1, maxLength 120
recurrence *"weekly" | "monthly"
start_cutoff_minutesinteger default: 60 · minimum 5, maximum 1440
start_time *string
timezone *stringminLength 1, maxLength 64
weekdaysinteger[]

Response 200

DELETE /api/maintenance-windows/{window_id}#

Delete Window

Permission maintenance.execute (roll out)

Parameters

window_id *pathstring (uuid)

Response 204

POST /api/maintenance-windows/{window_id}/exceptions#

Add Exception

Permission maintenance.execute (roll out)

Parameters

window_id *pathstring (uuid)

Request body ExceptionIn

Show 4 fields
FieldTypeNotes
kind *"skip" | "move"
moved_startstring (date-time) | null
occurrence_date *string (date)
reasonstring default: "" · maxLength 300

Response 201

DELETE /api/maintenance-windows/{window_id}/exceptions/{exception_id}#

Delete Exception

Permission maintenance.execute (roll out)

Parameters

window_id *pathstring (uuid)
exception_id *pathstring (uuid)

Response 200

GET /api/maintenance-windows/{window_id}/occurrences#

Window Occurrences

Permission maintenance.read (look)

Parameters

window_id *pathstring (uuid)
countqueryinteger

Response 200