Articles in this section

How to list Devices?

This allows you to check which drivers are installed (and in which state they are).

 

List all devices


GET /v1/devices
curl 'http://localhost:12340/v1/devices'

 

Count devices only

This is useful when you only need the caldera-total-results header.
 

HEAD /v1/devices

curl --head 'http://localhost:12340/v1/devices'

List Running Devices


GET /v1/devices/?state=running
curl 'http://localhost:12340/v1/devices?state=running'

Example sort


curl 'http://localhost:12340/v1/devices?sort=name:asc,state:desc'

Shared state values

Device responses use the shared state model. Documented values include:

  • unreachable
  • running
  • starting
  • aborting
  • stopping
  • sleeping
  • idling
Was this article helpful?
0 out of 0 found this helpful