Maintenance
Endpoints for the maintenance schedules of the team: install updates or reboot servers once, every week or every month, within a window nothing starts after. Each run starts a batch, which works through the servers at its pace and pauses after too many failures.
List maintenance schedules
List the team's maintenance schedules, the next to run first and schedules that are turned off last.
query Parameters
querySearch results by name.
per_pageNumber of results per page.
pagePage number to return.
List maintenance schedules › Responses
Paginated set of MaintenanceSchedule
Create a maintenance schedule
Schedule installing updates or rebooting servers once, every week or every month. Each run starts a batch on the servers the schedule picks at that moment: servers that are offline, or have nothing to install, are left out with why. Nothing starts after the window: the agents get its end as a deadline. A run that pauses after failures, or finishes with servers that failed or were left out, notifies the team members who want maintenance notifications.
Create a maintenance schedule › Request Body
actionWhat each run does: upgrade_packages installs updates, reboot reboots the servers.
frequencyonce at run_at, weekly on days, or monthly on the week_of_month weekday in days.
nameA name of your own, null or empty to name the schedule after its timing and action, such as "Sunday night security updates".
scopeFor upgrade_packages: which pending updates to install.
restart_servicesFor upgrade_packages: restart the services that use updated libraries.
reboot_if_requiredFor upgrade_packages: reboot a server after its updates when it needs one, only within the window.
if_requiredFor reboot: only reboot servers that need a reboot.
queryA server search that picks the servers on each run, empty for all of the team's servers. Leave it out when naming servers.
serversFormatted IDs of servers the team owns, instead of query.
concurrencyHow many servers a run works on at the same time: 1, 2 or 4 for updates, and also 10 for reboots.
stop_after_failuresThe failures after which a run pauses, null to never pause. Defaults to 2 for updates and 1 for reboots.
run_atFor a one-off run: when it starts, in the future. Without an offset it is read in timezone.
daysISO days of the week, 1 is Monday: every day of a weekly schedule, or the one weekday of a monthly schedule.
week_of_monthFor a monthly schedule: which of the month's weekdays, 1 to 4, or -1 for the last.
timeStart time of a weekly or monthly run in timezone, as HH:MM.
timezoneThe timezone of time, days and a run_at without an offset.
window_minutesMinutes after the start that nothing starts anymore: 30, 60, 120, 240 or 480.
enabledWhether the schedule runs.
Create a maintenance schedule › Responses
The maintenance schedule was created.
Get a maintenance schedule
Get one of the team's maintenance schedules, with its next and last run.
path Parameters
scheduleGet a maintenance schedule › Responses
MaintenanceSchedule
Update a maintenance schedule
Change a maintenance schedule, or turn it off or on with enabled. Fields left out keep their value. The next run is worked out again from now; a run that already started keeps going.
path Parameters
scheduleUpdate a maintenance schedule › Request Body
actionWhat each run does: upgrade_packages installs updates, reboot reboots the servers.
frequencyonce at run_at, weekly on days, or monthly on the week_of_month weekday in days.
nameA name of your own, null or empty to name the schedule after its timing and action, such as "Sunday night security updates".
scopeFor upgrade_packages: which pending updates to install.
restart_servicesFor upgrade_packages: restart the services that use updated libraries.
reboot_if_requiredFor upgrade_packages: reboot a server after its updates when it needs one, only within the window.
if_requiredFor reboot: only reboot servers that need a reboot.
queryA server search that picks the servers on each run, empty for all of the team's servers. Leave it out when naming servers.
serversFormatted IDs of servers the team owns, instead of query.
concurrencyHow many servers a run works on at the same time: 1, 2 or 4 for updates, and also 10 for reboots.
stop_after_failuresThe failures after which a run pauses, null to never pause. Defaults to 2 for updates and 1 for reboots.
run_atFor a one-off run: when it starts, in the future. Without an offset it is read in timezone.
daysISO days of the week, 1 is Monday: every day of a weekly schedule, or the one weekday of a monthly schedule.
week_of_monthFor a monthly schedule: which of the month's weekdays, 1 to 4, or -1 for the last.
timeStart time of a weekly or monthly run in timezone, as HH:MM.
timezoneThe timezone of time, days and a run_at without an offset.
window_minutesMinutes after the start that nothing starts anymore: 30, 60, 120, 240 or 480.
enabledWhether the schedule runs.
Update a maintenance schedule › Responses
MaintenanceSchedule
List the runs of a maintenance schedule
List the batches a maintenance schedule started, newest first, with their progress and the servers they left out.
path Parameters
schedulequery Parameters
querySearch results by name.
per_pageNumber of results per page.
pagePage number to return.
List the runs of a maintenance schedule › Responses
Paginated set of Batch
Get a batch
Get a batch of the team: one command per server under shared settings, to install updates or reboot, started from the web app or by a maintenance schedule. The batch webhook events carry the same object.
path Parameters
batchGet a batch › Responses
Batch