Last modified on October 21, 2020

Most of the device-related resources are available without authorization.

Get a device

Note: Parameter withProperties=true can be added to the URL to extend the response with additional information.

curl https://cloud.bitbar.com/api/devices/ID

List all devices

curl https://cloud.bitbar.com/api/devices

Get device properties

curl https://cloud.bitbar.com/api/devices/ID/properties

Filter devices

Get all device filters

Note: This is especially useful for dynamic device groups.

curl https://cloud.bitbar.com/api/devices/filters

Exclude a device filter group

Use the name_notlike filter parameter to exclude the specified device filter group from the query result.

The example below shows how to filter devices and exclude the Supported frameworks filter group from the response.

curl -u <api-key>: https://cloud.bitbar.com/api/v2/devices/filters?limit=0&filter=deviceFilterGroup.name_notlike_Supported%20frameworks

Set a device timeout

This operation requires authorization.

The testTimeLimit parameter sets a timeout to the specified device.

curl -X POST https://cloud.bitbar.com/api/v2/admin/devices/{deviceId}?testTimeLimit=7200

See Also

Managing devices and device groups

Highlight search results