Skip to main content
Skip table of contents

GetInfo. Sеrver. Mediaserver

Getting information about the state of the Mediaserver, resources consumed by the media server (CPU, RAM, IO, Network, as well as server uptime)

POST /api/server/
Body
tokenrequired
string
API authorization token. See Mediaserver/Web API/Authorization/CreateApiToken
Response
200
Returns a JSON object with information about the state of the Mediaserver
JSON
{
    "storages": {
        "/storage": {
            "mount": "/storage",
            "capacity_free": 276027936768,
            "err": 0,
            "name": "default",
            "inode_free": 26208727,
            "inode_total": 26214400,
            "capacity_total": 421606629376,
            "fs": ""
        },
        "/storage2": {
            "mount": "/storage2",
            "capacity_free": 0,
            "err": -2,
            "name": "secondary",
            "inode_free": 0,
            "inode_total": 0,
            "capacity_total": 0,
            "fs": ""
        }
    },
    "cpu": {
        "utime_sec": 938,
        "stime_sec": 938,
        "usage": 4,
        "total": 22
    },
    "streams": {
        "total": 6,
        "active": 6,
        "clients": 0
    },
    "mem": {
        "rss": 113586176,
        "share": 9359360,
        "usage": 2659090432
    },
    "server": {
        "startat": 1675760496,
        "ip4": "170.150.111.111",
        "build": "a0d8230",
        "hostname": "host-name-1",
        "name": "MS-21.03.3-lts-release",
        "version": "21.03.3",
        "uptime": 1042686,
        "revision": "lts-release",
        "timestamp": "20221124111419"
    },
    "io": {
        "write_rate": 0,
        "read_rate": 0,
        "read_bytes": 0,
        "write_bytes": 0
    },
    "cluster": {
        "id": "6",
        "node": "101",
        "hostname": "host-name-1",
        "enable": "true"
    },
    "drives": {
        "/storage": {
            "capacity_free": 276027936768,
            "mount": "/storage",
            "inode_free": 26208727,
            "inode_total": 26214400,
            "capacity_total": 421606629376,
            "fs": "ext4"
        },
        "/boot": {
            "capacity_free": 1229238272,
            "mount": "/boot",
            "inode_free": 97984,
            "inode_total": 98304,
            "capacity_total": 1547051008,
            "fs": "ext4"
        },
        "/": {
            "capacity_free": 8124116992,
            "mount": "/",
            "inode_free": 2806459,
            "inode_total": 3178496,
            "capacity_total": 51066400768,
            "fs": "ext4"
        }
    },
    "license": {
        "type": "enterprise",
        "issued": 1677617999
    },
    "net": {
        "in_bitrate": 7464272,
        "out_bitrate": 0
    }
}
string
server.hostnameServer hostname
string
server.revisionSource code branch
string
server.buildSoftware build number
string
server.versionSoftware version
string
server.nameSoftware name
timestamp
server.startatMediaserver start time
seconds
server.uptimeTime in seconds since server reboot
timestamp
server.timestamp
object
cpuCPU load information
object
memInformation on available and consumed memory
object
ioInformation on write/read speed
object
netInformation on network load and number of connected clients
403
API authorization error. Invalid or missing API access token. See Mediaserver/Web API/Authorization/CreateApiToken
Example
JSON
curl -k --location --request POST 'https://localhost:8080/api/server/?token=string'
JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.