Skip to content

Conversation

zbuchheit
Copy link
Contributor

Adds missing fields to the tailscale_device and tailscale_devices data sources to align with Tailscale API structure

What this PR does / why we need it:

This adds missing fields that are currently exposed in the https://tailscale.com/api#tag/devices/get/device/{deviceId} API that aren't in the tailscale_device and tailscale_devices data sources.

Special notes for your reviewer:

This does not include the fields argument functionality which would expose AdvertisedRoutes, EnabledRoutes, and ClientConnectivity.

Addresses #572

Adds missing fields to the `tailscale_device` and `tailscale_devices`
data sources to align with Tailscale API structure

Signed-off-by: Zach Buchheit <[email protected]>
Adds last_seen nil check to deviceToMap
Adds unit tests covering new data_source device fields

Signed-off-by: Zach Buchheit <[email protected]>
@zbuchheit zbuchheit force-pushed the zbuchheit/add-device-fields branch from 859c302 to febf427 Compare October 22, 2025 18:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant