Maintenance windows
Generated from openapi.json (API version 0.54.3). 4 endpoints. See the API overview for the base URL and how to sign requests.
Get Maintenance Rules
Section titled “Get Maintenance Rules”GET /maintenance
Needs read:maintenance.
Get all maintenance rules
Responses
200Successful Response: array ofMaintenanceRuleRead
Create Maintenance Rule
Section titled “Create Maintenance Rule”POST /maintenance
Needs write:maintenance.
Create a new maintenance rule
Body (application/json, required): MaintenanceRuleCreate
| Field | Type | Required | Description |
|---|---|---|---|
name |
string | yes | |
description |
string or null | no | |
cel_query |
string | yes | |
start_time |
string (date-time) | yes | |
duration_seconds |
integer or null | no | |
suppress |
boolean | no | |
enabled |
boolean | no | |
ignore_statuses |
array of string | no |
Responses
200Successful Response:MaintenanceRuleRead
Update Maintenance Rule
Section titled “Update Maintenance Rule”PUT /maintenance/{rule_id}
Needs write:maintenance.
Update an existing maintenance rule
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
rule_id |
integer | yes |
Body (application/json, required): MaintenanceRuleCreate
| Field | Type | Required | Description |
|---|---|---|---|
name |
string | yes | |
description |
string or null | no | |
cel_query |
string | yes | |
start_time |
string (date-time) | yes | |
duration_seconds |
integer or null | no | |
suppress |
boolean | no | |
enabled |
boolean | no | |
ignore_statuses |
array of string | no |
Responses
200Successful Response:MaintenanceRuleRead
Delete Maintenance Rule
Section titled “Delete Maintenance Rule”DELETE /maintenance/{rule_id}
Needs write:maintenance.
Delete a maintenance rule
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
rule_id |
integer | yes |
Responses
200Successful Response: object