API Reference
POST
uninstall-varnishUninstall Varnish
Uninstall Varnish is a POST request to https://api.sharkcluster.com/uninstall-varnish in the Server Management section of the SharkCluster API. Removes Varnish and restores the original port settings of your web server. It takes 2 parameters, 1 required (server_id).
Request URL
POST
https://api.sharkcluster.com/uninstall-varnishHow do you call Uninstall Varnish?
- 1Get a token from the login endpoint (POST /login) and send it as Authorization: Bearer <token>. See Login.
- 2Send a POST request to https://api.sharkcluster.com/uninstall-varnish.
- 3Include the required parameter: server_id.
- 4Add the optional parameter only if you need it: server_type.
Request parameters
| Parameter | Type | Description |
|---|---|---|
server_idRequired | string | The Internal Unique ID of the server. |
server_type | string | (Install only) nginx or apache2. Defaults to nginx. |
What does Uninstall Varnish return?
This endpoint has no documented response sample yet; check the response body of your first call.
Request sample
const axios = require('axios');
axios.post('https://api.sharkcluster.com/uninstall-varnish', {
server_id: "0000-1111-2222"
}, {
headers: { 'Authorization': 'Bearer YOUR_TOKEN' }
})
.then(res => console.log("Uninstallation:", res.data.message))
.catch(err => console.error(err));
Related Server Management endpoints
Stuck on an integration?
Raise a ticket from the panel with the endpoint and the response you got back — it reaches an engineer with your server already attached.