API Reference
POST
get-varnish-vclGet Varnish VCL
Get Varnish VCL is a POST request to https://api.sharkcluster.com/get-varnish-vcl in the Server Management section of the SharkCluster API. Reads the current active Varnish configuration file (/etc/varnish/default.vcl) from the server. It takes 1 parameter, 1 required (server_id).
Request URL
POST
https://api.sharkcluster.com/get-varnish-vclHow do you call Get Varnish VCL?
- 1Send a POST request to https://api.sharkcluster.com/get-varnish-vcl.
- 2Include the required parameter: server_id.
Request parameters
| Parameter | Type | Description |
|---|---|---|
server_idRequired | string | The unique identifier or Instance ID of the server. |
What does Get Varnish VCL return?
This endpoint has no documented response sample yet; check the response body of your first call.
Request sample
const axios = require('axios');
const response = await axios.post('https://api.sharkcluster.com/get-varnish-vcl', {
server_id: "123"
});
console.log(response.data.vcl);
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.