Disks

Authentication

HTTP Basic / Digest authentication is required. The user must have permission to configure system.

All Status

To get the status of all disks, request the following:

GET /api/disks

This is an example response to the above request.

HTTP/1.1 200 OK
Content-Type: application/json

{
  "disks":[
    {
      "id":1,
      "name":"Hitachi-HDP725050GLA360-GEA510RV12YX0A",
      "connected":true,
      "connectable":true,
      "cameras":"*",
      "limit":95,
      "capacity":499862601728,
      "usage":198061289472,
      "dates":"2016-12-06 ~ 2016-12-27",
      "smart":"37° C"
    },
    {
      "id":2,
      "name":"Hitachi-HDS5C4040ALE630-PL2311LAG195GC-Partition1",
      "connected":false,
      "connectable":true,
      "cameras":"*",
      "limit":95,
      "capacity":0,
      "usage":0,
      "dates":"",
      "smart":"37° C"
    }
  ]
}

Disk Status

To get the status of individual disks, attach the disk ID to URL as follows.

GET /api/disks/1

This is an example response to the above request.

HTTP/1.1 200 OK
Content-Type: application/json

{
  "id":1,
  "name":"ST1000DM003-1CH162-S1DHDTT7",
  "connected":true,
  "connectable":true,
  "cameras":"*",
  "limit":100,
  "capacity":984373800960,
  "usage":980600778752,
  "dates":"2016-12-15 ~ 2016-12-27",
  "smart":"29° C"
}