Skip to content
On this page

Retrieve a virtual CPU

Endpoint

GET /v1/cpus/{id}

Retrieves a virtual CPU present on a Raspberry Pi


Path Parameters


id REQUIRED type INTEGER

A virtual CPU id

Responses

json
{
   "id":{
      "type":"int"
   },
   "cores":{
      "type":"int32"
   },
   "modelName":{
      "type":"string"
   },
   "mhz":{
      "type":"float64"
   },
   "stats":{
      "type":"object",
      "properties":{
         "percentUsed":{
            "type":"float64"
         },
         "user":{
            "type":"float64"
         },
         "system":{
            "type":"float64"
         },
         "idle":{
            "type":"float64"
         }
      }
   }
}
text
Failed to retrieve a virtual CPU due to an invalid type for the virtual CPU id. It should be an integer.
text
Failed to retrieve a virtual CPU with given id.