List devices with label
labels_list_devices_with_labelRetrieve all devices tagged with a specific label from the device registry. Useful for finding everything tagged with one label before bulk actions.
Instructions
List devices that currently have a given label assigned.
Reads the device registry over WebSocket and keeps rows whose labels
list contains label_id.
Use when: finding everything tagged with one label, e.g. before a bulk
action.
Returns: list of device registry dicts that have the label.
Errors: on a WS failure, returns [{"error": "<message>"}] instead of
raising.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| label_id | Yes | Label registry ID to filter by; obtain it from labels_list_labels. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |