List registered devices
Returns
List registered devices
package main
import (
"context"
"fmt"
"github.com/kernel/hypeman-go"
"github.com/kernel/hypeman-go/option"
)
func main() {
client := hypeman.NewClient(
option.WithAPIKey("My API Key"),
)
devices, err := client.Devices.List(context.TODO())
if err != nil {
panic(err.Error())
}
fmt.Printf("%+v\n", devices)
}
[
{
"id": "tz4a98xxat96iws9zmbrgj3a",
"bound_to_vfio": false,
"created_at": "2025-01-15T10:00:00Z",
"device_id": "27b8",
"iommu_group": 82,
"pci_address": "0000:a2:00.0",
"type": "gpu",
"vendor_id": "10de",
"attached_to": null,
"name": "l4-gpu"
}
]
Returns Examples
[
{
"id": "tz4a98xxat96iws9zmbrgj3a",
"bound_to_vfio": false,
"created_at": "2025-01-15T10:00:00Z",
"device_id": "27b8",
"iommu_group": 82,
"pci_address": "0000:a2:00.0",
"type": "gpu",
"vendor_id": "10de",
"attached_to": null,
"name": "l4-gpu"
}
]