Skip to main content
Skip table of contents

GetServerStorageByPath. Sеrver. Mediaserver

Get information about disks available for recording archives.

GET /api/server/drive/?path=/storage/
Body
tokenrequired
string
API authorization token. See Mediaserver/Web API/Authorization/CreateApiToken.
Response
200
Returns a JSON object with information about the storage disk
JSON
{
    "mount": "/storage/",
    "capacity_total": 421606629376,
    "inode_free": 26208811,
    "fs": "",
    "inode_total": 26214400,
    "capacity_free": 276136054784
}
bytes
inode_free

Amount of free space on the disk

bytes
inode_totalAmount of total space on the disk
bytes
capacity_totalTotal volume of disk space
bytes
capacity_freeAmount of free disk space
string
fsType of file system
string
mountMount point of the disk or root directory for DVR storage
403
Authorization error. Invalid or missing API access token. See Mediaserver/Web API/Authorization/CreateApiToken for more information.
Example
JSON
curl -k --location --request GET 'https://localhost:8080/api/server/drive/?path=/storage/?token=string'
JavaScript errors detected

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

If this problem persists, please contact our support.