Stop a container
POST/apps/:id/stop
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}/stop"
Stops the container (the Engine's own grace period, then a kill) and returns its state afterwards, and publishes a container_state event.
Request
Responses
- 200
- default
The container after stopping.
An error response.