Apache CloudStack 4.21.0.0 Root Admin API Reference

prepareForMaintenance

Prepares management server for maintenance by preventing new jobs from being accepted after completion of active jobs and migrating the agents

Request parameters

Parameter NameDescriptionRequired
managementserveridthe id of the management servertrue
algorithmindirect agents load balancer algorithm (static, roundrobin, shuffle); when this is not set, already configured algorithm from setting 'indirect.agent.lb.algorithm' is consideredfalse
forcedForce management server to maintenance after the maintenance window timeout, default is falsefalse

Response Tags

Response NameDescription
agentsThe host agents this management server is responsible for
agentscountThe number of host agents this management server is responsible for
maintenanceinitiatedIndicates whether maintenance has been initiated
managementserveridThe id of the management server
pendingjobscountThe number of jobs in progress
readyforshutdownIndicates whether CloudStack is ready to shutdown
shutdowntriggeredIndicates whether a shutdown has been triggered
statethe state of the management server