AptlyStar

Tailscale

Manage devices and network settings in your Tailscale tailnet

Instructions d'utilisation

Interact with the Tailscale API to manage devices, DNS, ACLs, auth keys, users, and routes across your tailnet.

Outils

tailscale_list_devices

List all devices in the tailnet

Entrée

ParamètreTypeObligatoireDescription
apiKeystringOuiTailscale API key
tailnetstringOuiTailnet name (e.g., example.com) or "-" for default

Sortie

ParamètreTypeDescription
devicesarrayList of devices in the tailnet
↳ idstringDevice ID
↳ namestringDevice name
↳ hostnamestringDevice hostname
↳ userstringAssociated user
↳ osstringOperating system
↳ clientVersionstringTailscale client version
↳ addressesarrayTailscale IP addresses
↳ tagsarrayDevice tags
↳ authorizedbooleanWhether the device is authorized
↳ blocksIncomingConnectionsbooleanWhether the device blocks incoming connections
↳ lastSeenstringLast seen timestamp
↳ createdstringCreation timestamp
countnumberTotal number of devices

tailscale_get_device

Get details of a specific device by ID

Entrée

ParamètreTypeObligatoireDescription
apiKeystringOuiTailscale API key
tailnetstringOuiTailnet name (e.g., example.com) or "-" for default
deviceIdstringOuiDevice ID

Sortie

ParamètreTypeDescription
idstringDevice ID
namestringDevice name
hostnamestringDevice hostname
userstringAssociated user
osstringOperating system
clientVersionstringTailscale client version
addressesarrayTailscale IP addresses
tagsarrayDevice tags
authorizedbooleanWhether the device is authorized
blocksIncomingConnectionsbooleanWhether the device blocks incoming connections
lastSeenstringLast seen timestamp
createdstringCreation timestamp
isExternalbooleanWhether the device is external
updateAvailablebooleanWhether an update is available
machineKeystringMachine key
nodeKeystringNode key

tailscale_delete_device

Remove a device from the tailnet

Entrée

ParamètreTypeObligatoireDescription
apiKeystringOuiTailscale API key
tailnetstringOuiTailnet name (e.g., example.com) or "-" for default
deviceIdstringOuiDevice ID to delete

Sortie

ParamètreTypeDescription
successbooleanWhether the device was successfully deleted
deviceIdstringID of the deleted device

tailscale_authorize_device

Authorize or deauthorize a device on the tailnet

Entrée

ParamètreTypeObligatoireDescription
apiKeystringOuiTailscale API key
tailnetstringOuiTailnet name (e.g., example.com) or "-" for default
deviceIdstringOuiDevice ID to authorize
authorizedbooleanOuiWhether to authorize (true) or deauthorize (false) the device

Sortie

ParamètreTypeDescription
successbooleanWhether the operation succeeded
deviceIdstringDevice ID
authorizedbooleanAuthorization status after the operation

tailscale_set_device_tags

Set tags on a device in the tailnet

Entrée

ParamètreTypeObligatoireDescription
apiKeystringOuiTailscale API key
tailnetstringOuiTailnet name (e.g., example.com) or "-" for default
deviceIdstringOuiDevice ID
tagsstringOuiComma-separated list of tags (e.g., "tag:server,tag:production")

Sortie

ParamètreTypeDescription
successbooleanWhether the tags were successfully set
deviceIdstringDevice ID
tagsarrayTags set on the device

tailscale_get_device_routes

Get the subnet routes for a device

Entrée

ParamètreTypeObligatoireDescription
apiKeystringOuiTailscale API key
tailnetstringOuiTailnet name (e.g., example.com) or "-" for default
deviceIdstringOuiDevice ID

Sortie

ParamètreTypeDescription
advertisedRoutesarraySubnet routes the device is advertising
enabledRoutesarraySubnet routes that are approved/enabled

tailscale_set_device_routes

Set the enabled subnet routes for a device

Entrée

ParamètreTypeObligatoireDescription
apiKeystringOuiTailscale API key
tailnetstringOuiTailnet name (e.g., example.com) or "-" for default
deviceIdstringOuiDevice ID
routesstringOuiComma-separated list of subnet routes to enable (e.g., "10.0.0.0/24,192.168.1.0/24")

Sortie

ParamètreTypeDescription
advertisedRoutesarraySubnet routes the device is advertising
enabledRoutesarraySubnet routes that are now enabled

tailscale_update_device_key

Enable or disable key expiry on a device

Entrée

ParamètreTypeObligatoireDescription
apiKeystringOuiTailscale API key
tailnetstringOuiTailnet name (e.g., example.com) or "-" for default
deviceIdstringOuiDevice ID
keyExpiryDisabledbooleanOuiWhether to disable key expiry (true) or enable it (false)

Sortie

ParamètreTypeDescription
successbooleanWhether the operation succeeded
deviceIdstringDevice ID
keyExpiryDisabledbooleanWhether key expiry is now disabled

tailscale_list_dns_nameservers

Get the DNS nameservers configured for the tailnet

Entrée

ParamètreTypeObligatoireDescription
apiKeystringOuiTailscale API key
tailnetstringOuiTailnet name (e.g., example.com) or "-" for default

Sortie

ParamètreTypeDescription
dnsarrayList of DNS nameserver addresses
magicDNSbooleanWhether MagicDNS is enabled

tailscale_set_dns_nameservers

Set the DNS nameservers for the tailnet

Entrée

ParamètreTypeObligatoireDescription
apiKeystringOuiTailscale API key
tailnetstringOuiTailnet name (e.g., example.com) or "-" for default
dnsstringOuiComma-separated list of DNS nameserver IP addresses (e.g., "8.8.8.8,8.8.4.4")

Sortie

ParamètreTypeDescription
dnsarrayUpdated list of DNS nameserver addresses
magicDNSbooleanWhether MagicDNS is enabled

tailscale_get_dns_preferences

Get the DNS preferences for the tailnet including MagicDNS status

Entrée

ParamètreTypeObligatoireDescription
apiKeystringOuiTailscale API key
tailnetstringOuiTailnet name (e.g., example.com) or "-" for default

Sortie

ParamètreTypeDescription
magicDNSbooleanWhether MagicDNS is enabled

tailscale_set_dns_preferences

Set DNS preferences for the tailnet (enable/disable MagicDNS)

Entrée

ParamètreTypeObligatoireDescription
apiKeystringOuiTailscale API key
tailnetstringOuiTailnet name (e.g., example.com) or "-" for default
magicDNSbooleanOuiWhether to enable (true) or disable (false) MagicDNS

Sortie

ParamètreTypeDescription
magicDNSbooleanUpdated MagicDNS status

tailscale_get_dns_searchpaths

Get the DNS search paths configured for the tailnet

Entrée

ParamètreTypeObligatoireDescription
apiKeystringOuiTailscale API key
tailnetstringOuiTailnet name (e.g., example.com) or "-" for default

Sortie

ParamètreTypeDescription
searchPathsarrayList of DNS search path domains

tailscale_set_dns_searchpaths

Set the DNS search paths for the tailnet

Entrée

ParamètreTypeObligatoireDescription
apiKeystringOuiTailscale API key
tailnetstringOuiTailnet name (e.g., example.com) or "-" for default
searchPathsstringOuiComma-separated list of DNS search path domains (e.g., "corp.example.com,internal.example.com")

Sortie

ParamètreTypeDescription
searchPathsarrayUpdated list of DNS search path domains

tailscale_list_users

List all users in the tailnet

Entrée

ParamètreTypeObligatoireDescription
apiKeystringOuiTailscale API key
tailnetstringOuiTailnet name (e.g., example.com) or "-" for default

Sortie

ParamètreTypeDescription
usersarrayList of users in the tailnet
↳ idstringUser ID
↳ displayNamestringDisplay name
↳ loginNamestringLogin name / email
↳ profilePicURLstringProfile picture URL
↳ rolestringUser role (owner, admin, member, etc.)
↳ statusstringUser status (active, suspended, etc.)
↳ typestringUser type (member, shared, tagged)
↳ createdstringCreation timestamp
↳ lastSeenstringLast seen timestamp
↳ deviceCountnumberNumber of devices owned by user
countnumberTotal number of users

tailscale_create_auth_key

Create a new auth key for the tailnet to pre-authorize devices

Entrée

ParamètreTypeObligatoireDescription
apiKeystringOuiTailscale API key
tailnetstringOuiTailnet name (e.g., example.com) or "-" for default
reusablebooleanNonWhether the key can be used more than once
ephemeralbooleanNonWhether devices authenticated with this key are ephemeral
preauthorizedbooleanNonWhether devices are pre-authorized (skip manual approval)
tagsstringNonComma-separated list of tags for devices using this key (e.g., "tag:server,tag:prod")
descriptionstringNonDescription for the auth key
expirySecondsnumberNonKey expiry time in seconds (default: 90 days)

Sortie

ParamètreTypeDescription
idstringAuth key ID
keystringThe auth key value (only shown once at creation)
descriptionstringKey description
createdstringCreation timestamp
expiresstringExpiration timestamp
revokedstringRevocation timestamp (empty if not revoked)
capabilitiesobjectKey capabilities
↳ reusablebooleanWhether the key is reusable
↳ ephemeralbooleanWhether devices are ephemeral
↳ preauthorizedbooleanWhether devices are pre-authorized
↳ tagsarrayTags applied to devices using this key

tailscale_list_auth_keys

List all auth keys in the tailnet

Entrée

ParamètreTypeObligatoireDescription
apiKeystringOuiTailscale API key
tailnetstringOuiTailnet name (e.g., example.com) or "-" for default

Sortie

ParamètreTypeDescription
keysarrayList of auth keys
↳ idstringAuth key ID
↳ descriptionstringKey description
↳ createdstringCreation timestamp
↳ expiresstringExpiration timestamp
↳ revokedstringRevocation timestamp
↳ capabilitiesobjectKey capabilities
↳ reusablebooleanWhether the key is reusable
↳ ephemeralbooleanWhether devices are ephemeral
↳ preauthorizedbooleanWhether devices are pre-authorized
↳ tagsarrayTags applied to devices
countnumberTotal number of auth keys

tailscale_get_auth_key

Get details of a specific auth key

Entrée

ParamètreTypeObligatoireDescription
apiKeystringOuiTailscale API key
tailnetstringOuiTailnet name (e.g., example.com) or "-" for default
keyIdstringOuiAuth key ID

Sortie

ParamètreTypeDescription
idstringAuth key ID
descriptionstringKey description
createdstringCreation timestamp
expiresstringExpiration timestamp
revokedstringRevocation timestamp
capabilitiesobjectKey capabilities
↳ reusablebooleanWhether the key is reusable
↳ ephemeralbooleanWhether devices are ephemeral
↳ preauthorizedbooleanWhether devices are pre-authorized
↳ tagsarrayTags applied to devices using this key

tailscale_delete_auth_key

Revoke and delete an auth key

Entrée

ParamètreTypeObligatoireDescription
apiKeystringOuiTailscale API key
tailnetstringOuiTailnet name (e.g., example.com) or "-" for default
keyIdstringOuiAuth key ID to delete

Sortie

ParamètreTypeDescription
successbooleanWhether the auth key was successfully deleted
keyIdstringID of the deleted auth key

tailscale_get_acl

Get the current ACL policy for the tailnet

Entrée

ParamètreTypeObligatoireDescription
apiKeystringOuiTailscale API key
tailnetstringOuiTailnet name (e.g., example.com) or "-" for default

Sortie

ParamètreTypeDescription
aclstringACL policy as JSON string
etagstringETag for the current ACL version (use with If-Match header for updates)

On this page