API Reference
POSTget-varnish-vcl

Get 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

POSThttps://api.sharkcluster.com/get-varnish-vcl

How do you call Get Varnish VCL?

  1. 1Send a POST request to https://api.sharkcluster.com/get-varnish-vcl.
  2. 2Include the required parameter: server_id.

Request parameters

ParameterTypeDescription
server_id
Required
stringThe 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);

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.

Contact us