API Reference
GETget_server_caching_config/{serverId}

Get Caching Config

Get Caching Config is a GET request to https://api.sharkcluster.com/get_server_caching_config/{serverId} in the Server Management section of the SharkCluster API. Retrieves the current caching profile for the server, including active drivers and their respective memory allocations or port settings. It takes 1 parameter, 1 required (serverId).

Request URL

GEThttps://api.sharkcluster.com/get_server_caching_config/{serverId}

How do you call Get Caching Config?

  1. 1Get a token from the login endpoint (POST /login) and send it as Authorization: Bearer <token>. See Login.
  2. 2Send a GET request to https://api.sharkcluster.com/get_server_caching_config/{serverId}, replacing {serverId} in the path with your own value.

Request parameters

ParameterTypeDescription
serverId
Required
stringThe Internal Server ID or Provider Instance ID.

What does Get Caching Config return?

A successful call returns a JSON object with the field caching_config.

Request sample

const axios = require('axios');

axios.get('https://api.sharkcluster.com/get_server_caching_config/0000-1111-2222', {
  headers: { 'Authorization': 'Bearer YOUR_TOKEN' }
})
.then(res => console.log(res.data.caching_config))
.catch(err => console.error(err));

Response

{
    "caching_config": {
        "Manual": false,
        "Requrie1": false,
        "require2": false,
        "Profiling": false,
        "RedisToggle": false,
        "VarnishToggle": false,
        "MemcachedToggle": false,
        "max_clients_redis": "1000",
        "eviction_policy_redis": "Allkeys-lru",
        "max_memory_usage_redis": "512 MB",
        "persistence_mode_redis": "AOF",
        "max_connections_memcached": "1024",
        "max_memory_usage_memcached": "512 MB",
        "object_size_limit_memcached": "1 MB",
        "profiling_frequency_varnish": "30 Sec",
        "slab_growth_factor_memcached": "1.25",
        "profile_data_retention_varnish": "7 Days"
    }
}

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