Restart a service, service can be php, php5.6, php7.0, php7.1, php7.2, php7.3, php7.4, php8.0, php8.1, php8.2, nginx, database, redis or supervisor.
PUT /api/server/{id}/service/{service}/restart
Example request :
curl -X PUT "https://cloud.boxydev.com/api/server/1/service/nginx/restart" \
-H "Authorization: Bearer {token}" \
-H "Accept: application/json" \
-H "Content-Type: application/json"
Stop a service, service can be php, php5.6, php7.0, php7.1, php7.2, php7.3, php7.4, php8.0, php8.1, php8.2, nginx, database, redis or supervisor.
DELETE /api/server/{id}/service/{service}/stop
Example request :
curl -X DELETE "https://cloud.boxydev.com/api/server/1/service/nginx/stop" \
-H "Authorization: Bearer {token}" \
-H "Accept: application/json" \
-H "Content-Type: application/json"