OPNexusdocs

API: maintenance-windows

GET /api/maintenance-windows#

List Windows

Berechtigung maintenance.read (ansehen)

Antwort 200

POST /api/maintenance-windows#

Create Window

Berechtigung maintenance.execute (ausrollen)

Anfrage-Body WindowIn

13 Felder anzeigen
FeldTypHinweise
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[]

Antwort 201

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

Get Window

Berechtigung maintenance.read (ansehen)

Parameter

window_id *pathstring (uuid)

Antwort 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).

Berechtigung maintenance.execute (ausrollen)

Parameter

window_id *pathstring (uuid)

Anfrage-Body WindowIn

13 Felder anzeigen
FeldTypHinweise
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[]

Antwort 200

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

Delete Window

Berechtigung maintenance.execute (ausrollen)

Parameter

window_id *pathstring (uuid)

Antwort 204

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

Add Exception

Berechtigung maintenance.execute (ausrollen)

Parameter

window_id *pathstring (uuid)

Anfrage-Body ExceptionIn

4 Felder anzeigen
FeldTypHinweise
kind *"skip" | "move"
moved_startstring (date-time) | null
occurrence_date *string (date)
reasonstring default: "" · maxLength 300

Antwort 201

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

Delete Exception

Berechtigung maintenance.execute (ausrollen)

Parameter

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

Antwort 200

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

Window Occurrences

Berechtigung maintenance.read (ansehen)

Parameter

window_id *pathstring (uuid)
countqueryinteger

Antwort 200