API · v1.4.0
Maintenances
6 végpont. Az útvonalak a saját példánya /api/v1 címéhez képest értendők; a hitelesítést az áttekintő oldal írja le.
GET /workspaces/{workspace}/maintenances
Lists the maintenances of the workspace
state narrows the list: active windows in progress, upcoming ones with a later window, past ones that will not run again, all (default) everything. The state is computed from each schedule, so the narrowed lists select the matching ids first and then paginate them.
Paraméterek
| Név | Hely | Típus | Leírás |
|---|---|---|---|
workspacekötelező | path | string | The workspace slug |
state | query | active | upcoming | past | all | |
cursor | query | string | Opaque cursor taken from |
limit | query | integer | Page size. |
Válaszok
200422Validation error404Not found403Authorization error401Unauthenticated
POST /workspaces/{workspace}/maintenances
Paraméterek
| Név | Hely | Típus | Leírás |
|---|---|---|---|
workspacekötelező | path | string | The workspace slug |
Kéréstörzs
| Név | Típus |
|---|---|
titlekötelező | string |
description | string | null |
strategykötelező | MaintenanceStrategy (once, interval, weekly, monthly, cron) |
timezone | string | null |
starts_at | string | null |
ends_at | string | null |
start_time | string | null |
duration_minutes | integer | null |
every_days | integer | null |
weekdays | list<integer> | null |
month_days | list<integer> | null |
cron | string | null |
valid_from | string | null |
valid_until | string | null |
active | boolean |
monitor_idskötelező | list<integer> |
status_page_ids | list<integer> |
Válaszok
201404Not found403Authorization error401Unauthenticated422Validation error
GET /workspaces/{workspace}/maintenances/{maintenance}
Paraméterek
| Név | Hely | Típus | Leírás |
|---|---|---|---|
workspacekötelező | path | string | The workspace slug |
maintenancekötelező | path | integer | The maintenance ID |
Válaszok
200404Not found403Authorization error401Unauthenticated
PATCH /workspaces/{workspace}/maintenances/{maintenance}
Paraméterek
| Név | Hely | Típus | Leírás |
|---|---|---|---|
workspacekötelező | path | string | The workspace slug |
maintenancekötelező | path | integer | The maintenance ID |
Kéréstörzs
| Név | Típus |
|---|---|
title | string |
description | string | null |
strategy | MaintenanceStrategy (once, interval, weekly, monthly, cron) |
timezone | string | null |
starts_at | string | null |
ends_at | string | null |
start_time | string | null |
duration_minutes | integer | null |
every_days | integer | null |
weekdays | list<integer> | null |
month_days | list<integer> | null |
cron | string | null |
valid_from | string | null |
valid_until | string | null |
active | boolean |
monitor_ids | list<integer> |
status_page_ids | list<integer> |
Válaszok
200404Not found403Authorization error401Unauthenticated422Validation error
DELETE /workspaces/{workspace}/maintenances/{maintenance}
Paraméterek
| Név | Hely | Típus | Leírás |
|---|---|---|---|
workspacekötelező | path | string | The workspace slug |
maintenancekötelező | path | integer | The maintenance ID |
Válaszok
204No content404Not found403Authorization error401Unauthenticated
POST /workspaces/{workspace}/maintenances/{maintenance}/end
Ends a one-off maintenance now. Recurring ones are switched off with active: false instead
Paraméterek
| Név | Hely | Típus | Leírás |
|---|---|---|---|
workspacekötelező | path | string | The workspace slug |
maintenancekötelező | path | integer | The maintenance ID |
Válaszok
200422Validation error404Not found403Authorization error401Unauthenticated