API referenceSections

Server updates, services and tuning

16 operations. Open one for its parameters, request body, responses and examples.

MethodPathSummary
PUT/api/v1/tenants/{tid}/servers/{id}/maintenanceTurn maintenance on (with a note) or off (empty note); the server takes nothing new while on (ADR 0052)
GET/api/v1/tenants/{tid}/servers/{id}/orphan-foldersWebsite folders on the server the panel has no record of (no site, deleted or not, and no retention row), with size and file count; provider only (R22, ADR 0105)
POST/api/v1/tenants/{tid}/servers/{id}/orphan-folders/remove 202Queue the removal of one website folder the panel has no record of; its name typed in confirm; provider only; audited server.site_folder_orphan_remove (R22, ADR 0105)
GET/api/v1/tenants/{tid}/servers/{id}/servicesThe allow-listed Windows services of a server, their state and start type (ADR 0075); server.read
POST/api/v1/tenants/{tid}/servers/{id}/services/controlStart, stop, restart a service or set its start type; the panel's own services are refused; audited (ADR 0075)
POST/api/v1/tenants/{tid}/servers/{id}/services/remove-orphanRemove a ZopanelCache-* or ZopanelApp-* service whose cache or site the panel has no record of; provider only; audited (ADR 0105)
POST/api/v1/tenants/{tid}/servers/{id}/time-sync 202Set Windows Time to follow NTP and correct the clock now (ADR 0060)
GET/api/v1/tenants/{tid}/servers/{id}/tuneThe server-wide tuning (compression, Brotli, HTTP/3, TLS 1.3; ADR 0118)
PUT/api/v1/tenants/{tid}/servers/{id}/tuneSet the server-wide tuning policy and apply it now
GET/api/v1/tenants/{tid}/servers/{id}/updatesPending Windows updates, restart state and the maintenance window (ADR 0076); server.read
POST/api/v1/tenants/{tid}/servers/{id}/updates/installInstall updates from the last scan now, or approve them for the next window; audited
POST/api/v1/tenants/{tid}/servers/{id}/updates/reboot 202Restart the server in maintenance mode; maintenance ends when it is seen up again; audited
GET/api/v1/tenants/{tid}/servers/{id}/updates/runsScans, installs and restarts, newest first
POST/api/v1/tenants/{tid}/servers/{id}/updates/scan 202Look for pending updates now; audited
PUT/api/v1/tenants/{tid}/servers/{id}/updates/settingsSet the maintenance window, automatic install and restart policy; audited
POST/api/v1/tenants/{tid}/servers/{id}/updates/unapproveTake updates off the next window's list