API Reference
GETget_services/{serverId}

List Server Services

List Server Services is a GET request to https://api.sharkcluster.com/get_services/{serverId} in the Server Management section of the SharkCluster API. Retrieves all services (Web Server, Database, Cache) currently installed and managed by SharkCluster on the specified server. It takes 1 parameter, 1 required (serverId).

Request URL

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

How do you call List Server Services?

  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_services/{serverId}, replacing {serverId} in the path with your own value.

Request parameters

ParameterTypeDescription
serverId
Required
stringThe Internal Server ID or Provider Instance ID.
Authorization
Required
headerBearer token for authentication (e.g., Bearer eyJ...).

What does List Server Services return?

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

Request sample

const axios = require('axios');

const serverId = "0000-1111-2222";

axios.get(`https://api.sharkcluster.com/get_services/${serverId}`, {
  headers: { 'Authorization': 'Bearer YOUR_TOKEN' }
})
.then(res => console.log("Installed Services:", res.data.services))
.catch(err => console.error(err));

Response

{
    "services": [
        {
            "id": "00000000-0000-4000-8000-000000000010",
            "serverId": "00000000-0000-4000-8000-000000000008",
            "name": "PHP",
            "status": "active",
            "enabled": true,
            "logo": "badg2",
            "version": "8.3",
            "port": null,
            "documentRoot": "/home/demo.sharkcluster.com/demo/htdocs",
            "maxConnections": "N/A",
            "timeout": "300s",
            "errorLog": "/var/log/php8.3-fpm.log",
            "accessLog": "N/A",
            "settings": null,
            "createdAt": "2026-05-05T08:45:34.181Z",
            "updatedAt": "2026-05-05T08:45:34.181Z"
        },
        {
            "id": "00000000-0000-4000-8000-000000000011",
            "serverId": "00000000-0000-4000-8000-000000000008",
            "name": "MySQL",
            "status": "active",
            "enabled": true,
            "logo": "badg2",
            "version": "8.0",
            "port": 3306,
            "documentRoot": "N/A",
            "maxConnections": "151",
            "timeout": "N/A",
            "errorLog": "/var/log/mysql/error.log",
            "accessLog": "N/A",
            "settings": null,
            "createdAt": "2026-05-05T08:45:34.188Z",
            "updatedAt": "2026-05-05T08:45:34.188Z"
        },
        {
            "id": "00000000-0000-4000-8000-000000000012",
            "serverId": "00000000-0000-4000-8000-000000000008",
            "name": "Nginx",
            "status": "inactive",
            "enabled": true,
            "logo": "badg1",
            "version": "Latest",
            "port": 80,
            "documentRoot": "/home/demo.sharkcluster.com/demo/htdocs",
            "maxConnections": "1024",
            "timeout": "60s",
            "errorLog": "/var/log/nginx/demo_error.log",
            "accessLog": "/var/log/nginx/demo_access.log",
            "settings": null,
            "createdAt": "2026-05-05T08:45:34.172Z",
            "updatedAt": "2026-05-05T09:16:27.579Z"
        }
    ]
}

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