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
| Feld | Typ | Hinweise |
|---|---|---|
duration_minutes * | integer | minimum 15, maximum 1440 |
enabled | boolean | default: true |
expected_version | string | null | |
month_day | integer | null | |
month_mode | "nth_weekday" | "day" | null | |
month_nth | integer | null | |
month_weekday | integer | null | |
name * | string | minLength 1, maxLength 120 |
recurrence * | "weekly" | "monthly" | |
start_cutoff_minutes | integer | default: 60 · minimum 5, maximum 1440 |
start_time * | string | |
timezone * | string | minLength 1, maxLength 64 |
weekdays | integer[] |
Antwort 201
GET /api/maintenance-windows/{window_id}#
Get Window
Berechtigung maintenance.read (ansehen)
Parameter
window_id * | path | string (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 * | path | string (uuid) |
Anfrage-Body WindowIn
13 Felder anzeigen
| Feld | Typ | Hinweise |
|---|---|---|
duration_minutes * | integer | minimum 15, maximum 1440 |
enabled | boolean | default: true |
expected_version | string | null | |
month_day | integer | null | |
month_mode | "nth_weekday" | "day" | null | |
month_nth | integer | null | |
month_weekday | integer | null | |
name * | string | minLength 1, maxLength 120 |
recurrence * | "weekly" | "monthly" | |
start_cutoff_minutes | integer | default: 60 · minimum 5, maximum 1440 |
start_time * | string | |
timezone * | string | minLength 1, maxLength 64 |
weekdays | integer[] |
Antwort 200
DELETE /api/maintenance-windows/{window_id}#
Delete Window
Berechtigung maintenance.execute (ausrollen)
Parameter
window_id * | path | string (uuid) |
Antwort 204
POST /api/maintenance-windows/{window_id}/exceptions#
Add Exception
Berechtigung maintenance.execute (ausrollen)
Parameter
window_id * | path | string (uuid) |
Anfrage-Body ExceptionIn
4 Felder anzeigen
| Feld | Typ | Hinweise |
|---|---|---|
kind * | "skip" | "move" | |
moved_start | string (date-time) | null | |
occurrence_date * | string (date) | |
reason | string | default: "" · maxLength 300 |
Antwort 201
DELETE /api/maintenance-windows/{window_id}/exceptions/{exception_id}#
Delete Exception
Berechtigung maintenance.execute (ausrollen)
Parameter
window_id * | path | string (uuid) | |
exception_id * | path | string (uuid) |
Antwort 200
GET /api/maintenance-windows/{window_id}/occurrences#
Window Occurrences
Berechtigung maintenance.read (ansehen)
Parameter
window_id * | path | string (uuid) | |
count | query | integer |