Skip to content

Commit

Permalink
client/tailscale: add Device.PostureIdentity field
Browse files Browse the repository at this point in the history
New API fields being added in tailscale/corp#15445.

Updates tailscale/corp#15203

Signed-off-by: Paul Scott <paul@tailscale.com>
  • Loading branch information
icio committed Dec 19, 2023
1 parent 5e3126f commit 03f22cd
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions client/tailscale/devices.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,17 @@ type Device struct {
AdvertisedRoutes []string `json:"advertisedRoutes"` // Empty for external devices.

ClientConnectivity *ClientConnectivity `json:"clientConnectivity"`

// PostureIdentity contains extra identifiers collected from the device when
// the tailnet has the device posture identification features enabled. If
// Tailscale have attempted to collect this from the device but it has not
// opted in, PostureIdentity will have Disabled=true.
PostureIdentity *DevicePostureIdentity `json:"postureIdentity"`
}

type DevicePostureIdentity struct {
Disabled bool `json:"disabled,omitempty"`
SerialNumbers []string `json:"serialNumbers,omitempty"`
}

// DeviceFieldsOpts determines which fields should be returned in the response.
Expand Down

0 comments on commit 03f22cd

Please sign in to comment.