Restart a container
POST/apps/:id/restart
Required role: admin. Only an account or token with the admin role can call this operation.
Example request
curl --request POST \
--header "Authorization: Bearer $HOSERVA_TOKEN" \
"https://$HOSERVA_HOST:8008/api/v1/apps/{id}/restart"
Restarts the container and returns its state afterwards, and publishes a container_state event. Refused with 409 array_stopped, before the Engine is called, while the array is stopped (maintenance mode) or its storage is not ready, and with 503 array_state_unknown if the array's state cannot be read — the same refusal as startApp.
Request
Responses
- 200
- default
The container after restarting.
An error response.