1. Packages
  2. Tailscale Provider
Tailscale v0.17.4 published on Thursday, Oct 24, 2024 by Pulumi

Tailscale Provider

tailscale logo
Tailscale v0.17.4 published on Thursday, Oct 24, 2024 by Pulumi

    Installation

    The tailscale provider is available as a package in all Pulumi languages:

    Example Usage

    # Pulumi.yaml provider configuration file
    name: configuration-example
    runtime: nodejs
    config:
        tailscale:apiKey:
            value: 12345
        tailscale:tailnet:
            value: example.com
    
    # Pulumi.yaml provider configuration file
    name: configuration-example
    runtime: python
    config:
        tailscale:apiKey:
            value: 12345
        tailscale:tailnet:
            value: example.com
    
    # Pulumi.yaml provider configuration file
    name: configuration-example
    runtime: dotnet
    config:
        tailscale:apiKey:
            value: 12345
        tailscale:tailnet:
            value: example.com
    
    # Pulumi.yaml provider configuration file
    name: configuration-example
    runtime: go
    config:
        tailscale:apiKey:
            value: 12345
        tailscale:tailnet:
            value: example.com
    
    # Pulumi.yaml provider configuration file
    name: configuration-example
    runtime: yaml
    config:
        tailscale:apiKey:
            value: 12345
        tailscale:tailnet:
            value: example.com
    
    # Pulumi.yaml provider configuration file
    name: configuration-example
    runtime: java
    config:
        tailscale:apiKey:
            value: 12345
        tailscale:tailnet:
            value: example.com
    

    Configuration Reference

    • apiKey (String, Sensitive) The API key to use for authenticating requests to the API. Can be set via the TAILSCALE_API_KEY environment variable. Conflicts with ‘oauth_client_id’ and ‘oauth_client_secret’.
    • baseUrl (String) The base URL of the Tailscale API. Defaults to https://api.tailscale.com. Can be set via the TAILSCALE_BASE_URL environment variable.
    • oauthClientId (String) The OAuth application’s ID when using OAuth client credentials. Can be set via the TAILSCALE_OAUTH_CLIENT_ID environment variable. Both ‘oauth_client_id’ and ‘oauth_client_secret’ must be set. Conflicts with ‘api_key’.
    • oauthClientSecret (String, Sensitive) The OAuth application’s secret when using OAuth client credentials. Can be set via the TAILSCALE_OAUTH_CLIENT_SECRET environment variable. Both ‘oauth_client_id’ and ‘oauth_client_secret’ must be set. Conflicts with ‘api_key’.
    • scopes (List of String) The OAuth 2.0 scopes to request when for the access token generated using the supplied OAuth client credentials. See https://tailscale.com/kb/1215/oauth-clients/#scopes for available scopes. Only valid when both ‘oauth_client_id’ and ‘oauth_client_secret’ are set.
    • tailnet (String) The organization name of the Tailnet in which to perform actions. Can be set via the TAILSCALE_TAILNET environment variable. Default is the tailnet that owns API credentials passed to the provider.
    • userAgent (String) User-Agent header for API requests.
    tailscale logo
    Tailscale v0.17.4 published on Thursday, Oct 24, 2024 by Pulumi