configuration /
services
CLI REST-API
restart
restart [service]
The "restart" command will stop and start the service.
RESTAPI: The data can be passed in the body like this:
{
"parameters": {
"service": "https"
}
}
Name | Value | Description | Example |
---|
| service | | https |
See also:
/configuration/services: services
/configuration/services/start: start the service process if it is not already running
/configuration/services/stop: stop a service if it is not already running
/configuration/services/status: check if the service is running
REST-API Support:
This command is supported by the REST API:
Method: PUT
URL: /api/configuration/services/restart
Body:
{
"parameters": {
"service": [service]
}
}
Example using curl:
curl -X PUT /api/configuration/services/restart -d
"{
\"parameters\": {
\"service\": \"https\"
}
}"