List Devices
Returns all devices for your organization.
Required Scope: read-devices
Overview
Use this endpoint to manage your device inventory and map Hubble-registered devices to your system. (To consume a stream of incoming data, use the Retrieve Organization Packets endpoint.)
Query Parameters
Timestamp Filters
Use timestamp filters to trim down the search results.
- For simpliticy, we support the between:{after_timestamp}:{before_timestamp} operator.
- The after_timestamp value is inclusive and the before_timestamp value is exclusive.
Recent Packet
Each device may return a most_recent_packet object. This is a sample packet that is periodically refreshed.
- Latency: provided data is not updated in real-time or atomically with packet data.
- Availability: registered devices that have never sent a packet will have an empty most_recent_packet field.
:::warning This endpoint should not be used to request packet data. See "Retrieve Organization Packets". :::
When sorting by most_recent_packet,
- Devices that have never sent a packet are included in results and sort to the beginning (ascending) or end (descending) of the page.
- If sort_ascending is true, the pagination may return duplicate values since a device with a new most_recent_packet could be returned in subsequent pages.
- If sort_ascending is false, the pagination may skip devices that receive new most_recent_packet data during the pagination.
Example Queries
- Unused devices: filter_most_recent_packet_ts=between:0:1
- Recently Active Devices: filter_most_recent_packet_ts=between:{timestamp_one_day_ago}:{timestamp_now}
- Inactive Devices: filter_most_recent_packet_ts=between:1:{timestamp_one_week_ago}
- Recently Registered Devices: filter_created_ts=between:{timestamp_one_day_ago}:{timestamp_now}
Request
- Base URL: https://api.hubble.com
- URL: https://api.hubble.com/v2/org/{org_id}/devices
- Auth: HTTP bearer
Path parameters
The ID for an organization
Your organization ID
Query parameters
A limit for the page size of devices
Filter devices by creation timestamp (e.g., filter_created_ts=between:1000:2000) Timestamps are in seconds since the Unix epoch. The only supported filtering operator currently is between.
Filter devices by most recent packet timestamp (e.g., filter_most_recent_packet_ts=between:1000:2000) Timestamps are in seconds since the Unix epoch. The most recent packet value is only updated periodically. The only supported filtering operator currently is between.
Field to sort devices by
Sort order (true for ascending, false for descending)
Headers
A token to indicate how to continue paging
Response
Device Pages
Example response
{
"devices": [
{
"tags": {
"_env": "production"
}
}
]
}Changes
No recorded changes to this operation across all 1 revision of this API.