Operations Basics / Version 2107
Table Of ContentsThe runlevel endpoint allows to switch the runlevel on a Content Server.
Endpoint properties.
management.endpoint.runlevel.enabled=true
Endpoint URL.
http://localhost:8081/actuator/runlevel
When requested using a GET HTTP request, the endpoint will respond with the currently active runlevel.
Response.
{ "RUNLEVEL": "ONLINE" }
To switch the runlevel, send a POST request to the endpoint with the desired runlevel and a grace period for the switch.
Switch runlevel.
curl -X POST -H "Content-Type: application/json" \ -d '{"runlevel": "MAINTENANCE", "gracePeriod": 30}' \ http://localhost:8081/actuator/runlevel