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 http://localhost:12340/v1/devices
curl --request GET \
 --url http://localhost:12340/v1/devices \
 --header 'Accept: application/json'

 

Count devices only

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

HEAD http://localhost:12340/v1/devices

curl --head \
 --url http://localhost:12340/v1/devices

List Running Devices


GET http://localhost:12340/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