API Reference
GETget_server_other_services_config/:serverId

Get Server Other Services Config

Get Server Other Services Config is a GET request to https://api.sharkcluster.com/get_server_other_services_config/:serverId in the Server Management section of the SharkCluster API. Retrieves the configuration for auxiliary services (such as Redis, Elasticsearch, RabbitMQ, etc.) associated with a specific server. It takes 1 parameter, 1 required (serverId).

Request URL

GEThttps://api.sharkcluster.com/get_server_other_services_config/:serverId

How do you call Get Server Other Services 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_other_services_config/:serverId, replacing {serverId} in the path with your own value.

Request parameters

ParameterTypeDescription
serverId
Required
stringThe unique identifier or Instance ID of the server.

What does Get Server Other Services Config return?

A successful call returns a JSON object with the field other_services_config. A failed call explains the problem in the body, for example "Server not found".

Request sample

const axios = require('axios');

async function getServerOtherServicesConfig(serverId, token) {
  try {
    const response = await axios.get(`https://api.sharkcluster.com/get_server_other_services_config/${serverId}`, {
      headers: {
        'Authorization': `Bearer ${token}`
      }
    });
    console.log('Other Services Config:', response.data.other_services_config);
  } catch (error) {
    console.error('Error:', error.response?.data || error.message);
  }
}

// Example usage
getServerOtherServicesConfig('server_123', 'your_auth_token_here');

Response

{
    "other_services_config": {
        "SMTP": {
            "status": "Inactive",
            "max_heap": "512 MB",
            "heap_usage": "0%"
        },
        "Database": {
            "status": "Active",
            "max_heap": "512 MB",
            "heap_usage": "0%"
        },
        "RabbitMQ": {
            "status": "Inactive",
            "max_heap": "512 MB",
            "heap_usage": "0%"
        },
        "Opensearch": {
            "status": "Inactive",
            "max_heap": "512 MB",
            "heap_usage": "0%"
        },
        "Supervisor": {
            "status": "Inactive",
            "max_heap": "512 MB",
            "heap_usage": "0%"
        },
        "Elasticsearch": {
            "status": "Inactive",
            "max_heap": "512 MB",
            "heap_usage": "0%"
        }
    }
}

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