{"slug":"automations","title":"Automations","tags":["tailscale"],"agent_summary":"Last validated: Dec 14, 2025","trigger_phrases":[],"runnable":false,"markdown":"\r\n# Automations\r\n\r\nLast validated: Dec 14, 2025\r\n\r\nStreamline and [automate your Tailscale workflow](https://tailscale.com/learn/provision-manage-and-query-tailscale-resources-programmatically-as-code) using official infrastructure as code (IaC) providers, the Tailscale application programming interface (API), webhooks, and integrations.\r\n\r\n## [Infrastructure as code](https://tailscale.com/docs/automations\\#infrastructure-as-code)\r\n\r\n[Infrastructure as code (IaC)](https://tailscale.com/docs/integration-infrastructure-as-code) is a method of managing infrastructure using machine-readable definition files rather than physical hardware or interactive configuration tools. Tailscale offers official providers for Terraform and Pulumi that let you interact with the [Tailscale API](https://tailscale.com/docs/reference/tailscale-api) to manage various Tailscale resources, such as access control policies, devices, nameservers, and other configurations.\r\n\r\n[**Manage Tailscale resources using Terraform** \\\\\r\n\\\\\r\nUse the Terraform Tailscale provider to interact with the Tailscale API.](https://tailscale.com/docs/integrations/terraform-provider) [**Manage Tailscale resources using Pulumi** \\\\\r\n\\\\\r\nUse the Pulumi Tailscale provider to interact with the Tailscale API.](https://tailscale.com/docs/integrations/pulumi-provider)\r\n\r\n## [API](https://tailscale.com/docs/automations\\#api)\r\n\r\nTailscale offers an API to let you automate various aspects of your network.\r\n\r\n[**Tailscale API** \\\\\r\n\\\\\r\nExplore the Tailscale application programming interface (API).](https://tailscale.com/docs/reference/tailscale-api)\r\n\r\n## [Webhooks](https://tailscale.com/docs/automations\\#webhooks)\r\n\r\nWebhooks let you subscribe to certain events on your Tailscale network and process the event notifications through an integration or app.\r\n\r\n[**Webhooks** \\\\\r\n\\\\\r\nSet up a webhook to receive notification of events on your Tailscale network.](https://tailscale.com/docs/features/webhooks)\r\n\r\n## [GitOps](https://tailscale.com/docs/automations\\#gitops)\r\n\r\n[GitOps](https://opengitops.dev/) for Tailscale is an alternative to managing [access control policies](https://tailscale.com/docs/features/access-control) and the [tailnet policy file](https://tailscale.com/docs/features/tailnet-policy-file) using the admin console.\r\n\r\n[**GitOps for Tailscale with Bitbucket** \\\\\r\n\\\\\r\nUse a Bitbucket CI to maintain your tailnet policy file as code.](https://tailscale.com/docs/integrations/bitbucket/gitops) [**GitOps for Tailscale with GitLab CI** \\\\\r\n\\\\\r\nUse a GitLab CI to maintain your tailnet policy file as code.](https://tailscale.com/docs/integrations/gitlab/gitops) [**GitOps for Tailscale with GitHub Actions** \\\\\r\n\\\\\r\nUse a GitHub Action to maintain your tailnet policy file as code.](https://tailscale.com/docs/integrations/github/gitops)\r\n\r\n## [Tailscale Shortcuts for macOS and iOS](https://tailscale.com/docs/automations\\#tailscale-shortcuts-for-macos-and-ios)\r\n\r\nTailscale works with the Shortcuts app on macOS and iOS to provide several built-in shortcut actions, allowing you to automate tasks. For example, you can create shortcuts to connect your device to a tailnet, use an exit node, or switch user accounts.\r\n\r\n[**macOS and iOS shortcuts** \\\\\r\n\\\\\r\nUnderstand how Tailscale works with the Shortcuts app, allowing you to automate tasks.](https://tailscale.com/docs/features/mac-ios-shortcuts)\r\n\r\n![Project Logo](https://cdn.brandfetch.io/tailscale.com/fallback/lettermark/theme/dark/h/256/w/256/icon?c=1bfwsmEH20zzEfSNTed)\r\n\r\nAsk AI\r\n\r\nreCAPTCHA\r\n\r\nRecaptcha requires verification.\r\n\r\nprotected by **reCAPTCHA**\r\n","html":"<h1>Automations</h1>\n<p>Last validated: Dec 14, 2025</p>\n<p>Streamline and <a href=\"https://tailscale.com/learn/provision-manage-and-query-tailscale-resources-programmatically-as-code\">automate your Tailscale workflow</a> using official infrastructure as code (IaC) providers, the Tailscale application programming interface (API), webhooks, and integrations.</p>\n<h2><a href=\"https://tailscale.com/docs/automations#infrastructure-as-code\">Infrastructure as code</a></h2>\n<p><a href=\"https://tailscale.com/docs/integration-infrastructure-as-code\">Infrastructure as code (IaC)</a> is a method of managing infrastructure using machine-readable definition files rather than physical hardware or interactive configuration tools. Tailscale offers official providers for Terraform and Pulumi that let you interact with the <a href=\"https://tailscale.com/docs/reference/tailscale-api\">Tailscale API</a> to manage various Tailscale resources, such as access control policies, devices, nameservers, and other configurations.</p>\n<p><a href=\"https://tailscale.com/docs/integrations/terraform-provider\"><strong>Manage Tailscale resources using Terraform</strong> \\\r\n\\\r\nUse the Terraform Tailscale provider to interact with the Tailscale API.</a> <a href=\"https://tailscale.com/docs/integrations/pulumi-provider\"><strong>Manage Tailscale resources using Pulumi</strong> \\\r\n\\\r\nUse the Pulumi Tailscale provider to interact with the Tailscale API.</a></p>\n<h2><a href=\"https://tailscale.com/docs/automations#api\">API</a></h2>\n<p>Tailscale offers an API to let you automate various aspects of your network.</p>\n<p><a href=\"https://tailscale.com/docs/reference/tailscale-api\"><strong>Tailscale API</strong> \\\r\n\\\r\nExplore the Tailscale application programming interface (API).</a></p>\n<h2><a href=\"https://tailscale.com/docs/automations#webhooks\">Webhooks</a></h2>\n<p>Webhooks let you subscribe to certain events on your Tailscale network and process the event notifications through an integration or app.</p>\n<p><a href=\"https://tailscale.com/docs/features/webhooks\"><strong>Webhooks</strong> \\\r\n\\\r\nSet up a webhook to receive notification of events on your Tailscale network.</a></p>\n<h2><a href=\"https://tailscale.com/docs/automations#gitops\">GitOps</a></h2>\n<p><a href=\"https://opengitops.dev/\">GitOps</a> for Tailscale is an alternative to managing <a href=\"https://tailscale.com/docs/features/access-control\">access control policies</a> and the <a href=\"https://tailscale.com/docs/features/tailnet-policy-file\">tailnet policy file</a> using the admin console.</p>\n<p><a href=\"https://tailscale.com/docs/integrations/bitbucket/gitops\"><strong>GitOps for Tailscale with Bitbucket</strong> \\\r\n\\\r\nUse a Bitbucket CI to maintain your tailnet policy file as code.</a> <a href=\"https://tailscale.com/docs/integrations/gitlab/gitops\"><strong>GitOps for Tailscale with GitLab CI</strong> \\\r\n\\\r\nUse a GitLab CI to maintain your tailnet policy file as code.</a> <a href=\"https://tailscale.com/docs/integrations/github/gitops\"><strong>GitOps for Tailscale with GitHub Actions</strong> \\\r\n\\\r\nUse a GitHub Action to maintain your tailnet policy file as code.</a></p>\n<h2><a href=\"https://tailscale.com/docs/automations#tailscale-shortcuts-for-macos-and-ios\">Tailscale Shortcuts for macOS and iOS</a></h2>\n<p>Tailscale works with the Shortcuts app on macOS and iOS to provide several built-in shortcut actions, allowing you to automate tasks. For example, you can create shortcuts to connect your device to a tailnet, use an exit node, or switch user accounts.</p>\n<p><a href=\"https://tailscale.com/docs/features/mac-ios-shortcuts\"><strong>macOS and iOS shortcuts</strong> \\\r\n\\\r\nUnderstand how Tailscale works with the Shortcuts app, allowing you to automate tasks.</a></p>\n<p><img src=\"https://cdn.brandfetch.io/tailscale.com/fallback/lettermark/theme/dark/h/256/w/256/icon?c=1bfwsmEH20zzEfSNTed\" alt=\"Project Logo\"></p>\n<p>Ask AI</p>\n<p>reCAPTCHA</p>\n<p>Recaptcha requires verification.</p>\n<p>protected by <strong>reCAPTCHA</strong></p>\n"}