List devices
listDevicesRetrieve a list of devices from the Level API. Use filters for hostname, tag, or group, and include detailed hardware or security information.
Instructions
List devices. Returns a list of your devices. Level API endpoint: GET /v2/devices
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 20. | |
| tag_id | No | Filter to only include devices that have the specified tag. | |
| group_id | No | Filter to only include devices with the given parent group id. If not provided, all devices are returned. If 'null' is provided, only devices without a parent group are returned. | |
| hostname | No | Filter to only include devices with the specified hostname. | |
| include_cpus | No | Include detailed CPU information in the response. | |
| ending_before | No | A cursor for use in pagination. ending_before is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with ID '1234', your subsequent call can include 'ending_before=1234' in order to fetch the previous page of the list. | |
| include_disks | No | Include detailed disk and disk partitioninformation in the response. | |
| serial_number | No | Filter to only include devices with the specified serial number. | |
| include_memory | No | Include detailed memory information in the response. | |
| starting_after | No | A cursor for use in pagination. starting_after is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with ID '1234', your subsequent call can include 'starting_after=1234' in order to fetch the next page of the list. | |
| include_security | No | Include detailed security information in the response. | |
| ancestor_group_id | No | Filter to only include devices with the given group id as an ancestor. | |
| include_motherboard | No | Include motherboard information in the response. | |
| include_operating_system | No | Include detailed operating system information in the response. | |
| include_network_interfaces | No | Include detailed network interface information in the response. |