Get details on DVR storage devices.
string Server.GetStorage ( )
Server.GetStorage
This method doesn’t require any call parameters.
POST /api/
{ "jsonrpc": "2.0", "method": "Server.GetStorage", "params": [], "id": 1 }
curl -k --request POST \ --url 'https://your-domain/api/' \ --header 'Content-Length: 90' \ --header 'Content-Type: application/json' \ --header 'Accept: application/json' \ --header 'Authorization: Bearer <api-authorization-token>' \ --header 'Content-Length: <data length>' \ --data '{ "jsonrpc": "2.0", "method": "Server.GetStorage", "params": [], "id": 1 }'
$data = array ( 'jsonrpc' => '2.0', 'method' => 'Server.GetStorage', 'params' => array ( ), 'id' => 1, ); $context = stream_context_create([ 'ssl'=>['verify_peer' => false], 'http' => [ 'method' => 'POST', 'header' => "Content-Type: application/json\r Accept: application/json\r Authorization: Bearer <api-authorization-token>\r Content-Length: <data length>", 'content'=>json_encode($data) ] ]); $result = file_get_contents('https://your-domain/api/', false, $context);
200 OK
OK
An array containing objects with information about disks.
[ { "capacity": 1000202039296, "mount": "/", "free": 574200487936, "type": "ext4", "volume": "/dev/sda" } ]
400 Bad Request
Bad Request
The JSON-RPC error
{ "error": { "code": -32601, "message": "Method not found" } }
500 Internal Server Error
Internal Server Error
The server error
Please note, these errors can depend on your browser setup.
If this problem persists, please contact our support.