Skip to content
On this page

List all disks

Endpoint

GET /v1/disks

Returns a list of all disks connected to a Raspberry Pi

Responses

json
{
   "type":"array",
   "items":{
      "type":"object",
      "properties":{
         "id":{
            "type":"string"
         },
         "filesystem":{
            "type":"string"
         },
         "fstype":{
            "type":"string"
         },
         "mountpoints":{
            "type":"object",
            "properties":{
               "mountpoint":{
                  "type":"string"
               },
               "fstype":{
                  "type":"string"
               },
               "opts":{
                  "type":"string"
               },
               "total":{
                  "type":"uint64"
               },
               "free":{
                  "type":"uint64"
               },
               "used":{
                  "type":"uint64"
               },
               "usedPercent":{
                  "type":"float64"
               },
               "inodesTotal":{
                  "type":"uint64"
               },
               "inodesUsed":{
                  "type":"uint64"
               },
               "inodesFree":{
                  "type":"uint64"
               },
               "inodesUsedPercent":{
                  "type":"float64"
               }
            }
         }
      }
   }
}