Devices
List devices
Returns a paginated list of the user’s devices along with pagination metadata. By default every device except terminated and unknown-state ones is listed, including stopped and maintenance devices; narrow with e.g. state=ready or state=stopped,maintenance, and pass state=terminated or state=unknown to see those.
GET
JavaScript
Returns a paginated list of your devices with pagination metadata.
Devices in the
Repeating the parameter (
Both date filters combine with state, type, name, createdBy and other existing
filters in the same paginated query. Pagination totals reflect every filter.
Default state filter
Without astate parameter the list contains devices in these states:
creating, assigned, ready, rebooting, migrating, resetting,
maintenance and stopped. A stopped device or a device in maintenance
still exists and is listed.
terminated or unknown state are hidden unless you request
them:
Filter by state
Pass one or more states to narrow the list. Separate states with commas:?state=stopped&state=maintenance) returns the same
result. To list only devices that can run a task right now, request
state=ready.
A stopped device keeps its data and is not billed. Start it again with
POST /v1/devices/{deviceId}/resume.
Filter by creation start
createdAfter includes devices created at or after the RFC3339 timestamp.
Filter by creation end
createdBefore includes devices created before the RFC3339 timestamp. The
end is exclusive. When both bounds are set, createdAfter must be earlier
than createdBefore; an equal or inverted range returns 400.
Query Parameters
Filter by current device state. Comma-separated (state=ready,stopped). Defaults to every state except terminated and unknown, so stopped and maintenance devices are listed; pass state=terminated or state=unknown to see those.
Available options:
creating, assigned, ready, rebooting, migrating, resetting, terminated, maintenance, stopped, unknown JavaScript