Triggers restart of the system. Returns: Empty response on success, error object otherwise.
()
| 301 | @api_blueprint.route('/restart', methods=['POST']) |
| 302 | @required_auth(auth.Role.ADMIN) |
| 303 | def restart_post(): |
| 304 | """Triggers restart of the system. |
| 305 | |
| 306 | Returns: |
| 307 | Empty response on success, error object otherwise. |
| 308 | """ |
| 309 | try: |
| 310 | local_system.restart() |
| 311 | return json_response.success() |
| 312 | except local_system.Error as e: |
| 313 | return json_response.error(e), 500 |
| 314 | |
| 315 | |
| 316 | @api_blueprint.route('/update', methods=['GET']) |
nothing calls this directly
no outgoing calls
no test coverage detected