Servers
Create, build, modify and manage servers.
Endpoints
- GETRetrieve a server
/servers/{serverId}Full server detail. With remoteState=true the hypervisor is also queried for the live power state. - DELETEDelete a server
/servers/{serverId}Delete the server now, or delay minutes from now. Refused with 423 while Do Not Disturb mode is active. - PUTAdd, remove or modify a backup plan deprecated
/servers/{serverId}/backups/plan/{planId}Assign a legacy backup plan to the server; a planId of 0 removes it. Deprecated: use the Backup Manager endpoints. - POSTBuild a server
/servers/{serverId}/buildInstall an operating system template on a created server. The install is queued; follow it through the queue endpoint. - PUTChange a server package
/servers/{serverId}/package/{packageId}Move the server to another package. Each flag says whether that resource follows the new package; the response lists anything left unchanged and why. - GETRetrieve servers
/serversPaged list of servers. type=simple default returns the short form; type=full returns the full server object for every row. - POSTCreate a server
/serversCreate a server and allocate its addresses; build it afterwards with the build endpoint. Resource fields override the package's values. - PUTModify name
/servers/{serverId}/modify/nameRename the server. Names are 3 to 60 characters. - POSTReset a server password
/servers/{serverId}/resetPasswordQueue a password reset for the given operating system user. The response includes the password that will be set; sendMail also emails it to the owner. - GETRetrieve a user's servers
/servers/user/{userId}All servers owned by a user, in the client area format with resources, network and status. - GETRetrieve OS templates available to a server
/servers/{serverId}/templatesOperating system template groups available to the server, filtered by its package and hypervisor. - GETList a server's notes ●
/servers/{serverId}/notesThe server's notes, newest first, 15 a page. A category narrows them, for example to the suspension history. - POSTAdd a note to a server ●
/servers/{serverId}/notesAdds a note in the API token's name. Every administrator sees it on the server. - POSTSuspend a server
/servers/{serverId}/suspendQueue a suspension: the server is powered off and locked until unsuspended. A suspension note is kept on the server, with the reason when one is given. - PUTThrottle a server's CPU
/servers/{serverId}/modify/cpuThrottleLimit the server to percent of its allocated CPU; 0 removes the throttle. sync=true applies it to the running server now, otherwise at the next start. - POSTUnsuspend a server
/servers/{serverId}/unsuspendQueue an unsuspend. Refused with 409 while a suspend action is still scheduled or has failed. A closing suspension note is kept on the server. - GETRetrieve VNC details
/servers/{serverId}/vncThe current VNC connection details. - POSTEnable or disable VNC
/servers/{serverId}/vncEnable or disable VNC for the server. Enabling returns the connection details, including the websocket token. - PUTChange owner
/servers/{serverId}/owner/{newOwnerId}Transfer the server to another user. - PUTModify memory
/servers/{serverId}/modify/memorySet the memory allocation in MB. - PUTModify CPU cores
/servers/{serverId}/modify/cpuCoresSet the number of CPU cores. Refused with 422 when the hypervisor does not have enough free cores. - POSTSet custom XML
/servers/{serverId}/customXMLStore custom libvirt XML fragments per section of the domain definition, and whether each is enabled. They are merged into the generated XML at the server's…
Also in this group
NetworkIPv4 assignment and the network whitelist for a server's interfaces.23 operationsPowerQueued power actions.4 operationsBackup ManagerBackup Manager actions scoped to one server.3 operationsHypervisor AssetsAttach, detach and order hypervisor assets such as passthrough devices.6 operationsQueueA server's queued tasks and deferred actions.3 operationsElevate4 operationsRescue3 operationsMedia3 operationsStorage7 operations