API Reference
GET
get_server_other_services_config/:serverIdGet 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
GET
https://api.sharkcluster.com/get_server_other_services_config/:serverIdHow do you call Get Server Other Services Config?
- 1Get a token from the login endpoint (POST /login) and send it as Authorization: Bearer <token>. See Login.
- 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
| Parameter | Type | Description |
|---|---|---|
serverIdRequired | string | The 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%"
}
}
}Related Server Management endpoints
- POST
upload-varnish-vclUpload Varnish VCL - GET
get_server_monitoring_settings/:serverIdGet Server Monitoring Settings - PUT
update_server_monitoring_settings/:serverIdUpdate Server Monitoring Settings - POST
install-elasticsearchInstall Elasticsearch - POST
restart-elasticsearchRestart Elasticsearch - POST
stop-elasticsearchStop Elasticsearch
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.