1. Packages
  2. Packages
  3. Tailscale Provider
  4. API Docs
  5. getAcl
Viewing docs for Tailscale v0.29.0
published on Saturday, Jul 11, 2026 by Pulumi
tailscale logo
Viewing docs for Tailscale v0.29.0
published on Saturday, Jul 11, 2026 by Pulumi

    Returns the Tailscale policy file for a tailnet.

    Note: The naming of this data source predates Tailscale’s usage of the term “policy file” to refer to the centralized configuration file for a tailnet. This data source fetches a tailnet’s entire policy file and not just the ACLs section within it.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tailscale from "@pulumi/tailscale";
    
    const example = tailscale.getAcl({});
    
    import pulumi
    import pulumi_tailscale as tailscale
    
    example = tailscale.get_acl()
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-tailscale/sdk/go/tailscale"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := tailscale.GetAcl(ctx, map[string]interface{}{}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Tailscale = Pulumi.Tailscale;
    
    return await Deployment.RunAsync(() => 
    {
        var example = Tailscale.GetAcl.Invoke();
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tailscale.TailscaleFunctions;
    import java.util.ArrayList;
    import java.util.Arrays;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            final var example = TailscaleFunctions.getAcl(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference);
    
        }
    }
    
    variables:
      example:
        fn::invoke:
          function: tailscale:getAcl
          arguments: {}
    
    pulumi {
      required_providers {
        tailscale = {
          source = "pulumi/tailscale"
        }
      }
    }
    
    data "tailscale_getacl" "example" {
    }
    

    Using getAcl

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getAcl(opts?: InvokeOptions): Promise<GetAclResult>
    function getAclOutput(opts?: InvokeOptions): Output<GetAclResult>
    def get_acl(opts: Optional[InvokeOptions] = None) -> GetAclResult
    def get_acl_output(opts: Optional[InvokeOptions] = None) -> Output[GetAclResult]
    func LookupAcl(ctx *Context, opts ...InvokeOption) (*LookupAclResult, error)
    func LookupAclOutput(ctx *Context, opts ...InvokeOption) LookupAclResultOutput

    > Note: This function is named LookupAcl in the Go SDK.

    public static class GetAcl 
    {
        public static Task<GetAclResult> InvokeAsync(InvokeOptions? opts = null)
        public static Output<GetAclResult> Invoke(InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetAclResult> getAcl(InvokeOptions options)
    public static Output<GetAclResult> getAcl(InvokeOptions options)
    
    fn::invoke:
      function: tailscale:index/getAcl:getAcl
      arguments:
        # arguments dictionary
    data "tailscale_getacl" "name" {
        # arguments
    }

    getAcl Result

    The following output properties are available:

    Hujson string
    The contents of the policy file as a HuJSON string.
    Id string
    The ID of this resource.
    Json string
    The contents of the policy file as a JSON string.
    Hujson string
    The contents of the policy file as a HuJSON string.
    Id string
    The ID of this resource.
    Json string
    The contents of the policy file as a JSON string.
    hujson string
    The contents of the policy file as a HuJSON string.
    id string
    The ID of this resource.
    json string
    The contents of the policy file as a JSON string.
    hujson String
    The contents of the policy file as a HuJSON string.
    id String
    The ID of this resource.
    json String
    The contents of the policy file as a JSON string.
    hujson string
    The contents of the policy file as a HuJSON string.
    id string
    The ID of this resource.
    json string
    The contents of the policy file as a JSON string.
    hujson str
    The contents of the policy file as a HuJSON string.
    id str
    The ID of this resource.
    json str
    The contents of the policy file as a JSON string.
    hujson String
    The contents of the policy file as a HuJSON string.
    id String
    The ID of this resource.
    json String
    The contents of the policy file as a JSON string.

    Package Details

    Repository
    tailscale pulumi/pulumi-tailscale
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the tailscale Terraform Provider.
    tailscale logo
    Viewing docs for Tailscale v0.29.0
    published on Saturday, Jul 11, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial