Apache CloudStack 4.21.0.0 Root Admin API Reference
prepareForShutdown
Prepares CloudStack for a safe manual shutdown by preventing new jobs from being accepted
Request parameters
| Parameter Name | Description | Required |
| managementserverid | the id of the management server | true |
Response Tags
| Response Name | Description |
| agents | The host agents this management server is responsible for |
| agentscount | The number of host agents this management server is responsible for |
| maintenanceinitiated | Indicates whether maintenance has been initiated |
| managementserverid | The id of the management server |
| pendingjobscount | The number of jobs in progress |
| readyforshutdown | Indicates whether CloudStack is ready to shutdown |
| shutdowntriggered | Indicates whether a shutdown has been triggered |
| state | the state of the management server |