Skip to main content
Skip table of contents

GetDrives

Gets information about connected disks and DVR storage locations described in the server configuration file (see Mediaserver/Configuration/Server (mediaserver.ini)).

GET /api/server/drives/
Body
tokenrequired
string
Authorization token for API requests. See Mediaserver/Web API/Authorization/CreateApiToken.
Response
200
Returns a JSON object with information about connected disks
JSON
{
    "/boot": {
        "capacity_total": 1547051008,
        "mount": "/boot",
        "inode_total": 98304,
        "inode_free": 97984,
        "fs": "ext4",
        "capacity_free": 1229238272
    },
    "/storage": {
        "capacity_total": 421606629376,
        "mount": "/storage",
        "inode_total": 26214400,
        "inode_free": 26208811,
        "fs": "ext4",
        "capacity_free": 276136054784
    },
    "/": {
        "capacity_total": 51066400768,
        "mount": "/",
        "inode_total": 3178496,
        "inode_free": 2806466,
        "fs": "ext4",
        "capacity_free": 8124948480
    }
}
bytes
inode_freeFree disk space.
bytes
inode_total

Total disk space.

bytes
capacity_total

Total disk space.

bytes
capacity_freeThe amount of free disk space
string
fsFile system type.
string
mountMount point or DVR storage root directory.
403
Authorization error. Invalid or missing API access token, see Mediaserver/Web API/Authorization/CreateApiToken.
Example
JSON
curl -k --location --request GET 'https://localhost:8080/api/server/drives/?token=string'
JavaScript errors detected

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

If this problem persists, please contact our support.