TSDevice
Represents a device connected to a Tailscale network, including both the local device and peer devices.
Labels: :TSDevice
Properties:
id- Unique device identifier (primary key)publicKey- Device's public key for authenticationhostname- Device hostnamednsName- DNS name assigned by TailscalecertDomains- Certificate domains (for self device)os- Operating system of the devicetailscaleIPs- Array of Tailscale IP addresses assigned to the deviceallowedIPs- Array of IP addresses/ranges the device is allowed to accessprimaryRoutes- Primary routes advertised by the device (peer devices only)relay- Relay server used for connectioncreated- Timestamp when the device was createdlastWrite- Timestamp of last write operationlastSeen- Timestamp when the device was last seen onlinelastHandshake- Timestamp of last cryptographic handshakenoFileSharingReason- Reason why file sharing is not available (if applicable)online- Boolean indicating if the device is currently onlineexitNode- Boolean indicating if the device is configured as an exit nodeactive- Boolean indicating if the device is activekeyExpiry- Timestamp when the device's key expiressshHostKeys- SSH host keys for the device (peer devices only)tags- Array of tags assigned to the device
Relationships
- TSTailnet → CONTAINS → TSDevice - Tailnets contain devices
- TSUser → OWNS → TSDevice - Users own the devices they register