Use this endpoint to gracefully shut down a running application. Virtus Cloud sends a termination signal to the process and waits for it to exit cleanly. Stopping an application frees the RAM and CPU allocated to it while preserving all deployed files and configuration on the server — you can restart the application at any time with the Start endpoint.
Stopping an application immediately terminates all active connections and in-flight requests. Ensure your application saves any persistent state before shutdown, or implement graceful shutdown handling within your process.
Endpoint
POST https://api.virtuscloud.app/v2/apps/{app_id}/stop
Path parameters
The unique ID of the application. You can find this in the URL of your application’s dashboard page on Virtus Cloud.
Response
Indicates whether the request succeeded. Returns "success" when the stop command is accepted and the application process is being terminated.
Code example
curl --request POST \
--url https://api.virtuscloud.app/v2/apps/<app_id>/stop \
--header "Authorization: <your_api_key>"
Response example