1. Packages
  2. Cloudflare Provider
  3. API Docs
  4. getZeroTrustGatewayPacfile
Viewing docs for Cloudflare v6.14.0
published on Thursday, Apr 2, 2026 by Pulumi
cloudflare logo
Viewing docs for Cloudflare v6.14.0
published on Thursday, Apr 2, 2026 by Pulumi

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as cloudflare from "@pulumi/cloudflare";
    
    const exampleZeroTrustGatewayPacfile = cloudflare.getZeroTrustGatewayPacfile({
        accountId: "699d98642c564d2e855e9661899b7252",
        pacfileId: "ed35569b41ce4d1facfe683550f54086",
    });
    
    import pulumi
    import pulumi_cloudflare as cloudflare
    
    example_zero_trust_gateway_pacfile = cloudflare.get_zero_trust_gateway_pacfile(account_id="699d98642c564d2e855e9661899b7252",
        pacfile_id="ed35569b41ce4d1facfe683550f54086")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-cloudflare/sdk/v6/go/cloudflare"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := cloudflare.LookupZeroTrustGatewayPacfile(ctx, &cloudflare.LookupZeroTrustGatewayPacfileArgs{
    			AccountId: "699d98642c564d2e855e9661899b7252",
    			PacfileId: "ed35569b41ce4d1facfe683550f54086",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Cloudflare = Pulumi.Cloudflare;
    
    return await Deployment.RunAsync(() => 
    {
        var exampleZeroTrustGatewayPacfile = Cloudflare.GetZeroTrustGatewayPacfile.Invoke(new()
        {
            AccountId = "699d98642c564d2e855e9661899b7252",
            PacfileId = "ed35569b41ce4d1facfe683550f54086",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.cloudflare.CloudflareFunctions;
    import com.pulumi.cloudflare.inputs.GetZeroTrustGatewayPacfileArgs;
    import java.util.List;
    import java.util.ArrayList;
    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 exampleZeroTrustGatewayPacfile = CloudflareFunctions.getZeroTrustGatewayPacfile(GetZeroTrustGatewayPacfileArgs.builder()
                .accountId("699d98642c564d2e855e9661899b7252")
                .pacfileId("ed35569b41ce4d1facfe683550f54086")
                .build());
    
        }
    }
    
    variables:
      exampleZeroTrustGatewayPacfile:
        fn::invoke:
          function: cloudflare:getZeroTrustGatewayPacfile
          arguments:
            accountId: 699d98642c564d2e855e9661899b7252
            pacfileId: ed35569b41ce4d1facfe683550f54086
    

    Using getZeroTrustGatewayPacfile

    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 getZeroTrustGatewayPacfile(args: GetZeroTrustGatewayPacfileArgs, opts?: InvokeOptions): Promise<GetZeroTrustGatewayPacfileResult>
    function getZeroTrustGatewayPacfileOutput(args: GetZeroTrustGatewayPacfileOutputArgs, opts?: InvokeOptions): Output<GetZeroTrustGatewayPacfileResult>
    def get_zero_trust_gateway_pacfile(account_id: Optional[str] = None,
                                       pacfile_id: Optional[str] = None,
                                       opts: Optional[InvokeOptions] = None) -> GetZeroTrustGatewayPacfileResult
    def get_zero_trust_gateway_pacfile_output(account_id: Optional[pulumi.Input[str]] = None,
                                       pacfile_id: Optional[pulumi.Input[str]] = None,
                                       opts: Optional[InvokeOptions] = None) -> Output[GetZeroTrustGatewayPacfileResult]
    func LookupZeroTrustGatewayPacfile(ctx *Context, args *LookupZeroTrustGatewayPacfileArgs, opts ...InvokeOption) (*LookupZeroTrustGatewayPacfileResult, error)
    func LookupZeroTrustGatewayPacfileOutput(ctx *Context, args *LookupZeroTrustGatewayPacfileOutputArgs, opts ...InvokeOption) LookupZeroTrustGatewayPacfileResultOutput

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

    public static class GetZeroTrustGatewayPacfile 
    {
        public static Task<GetZeroTrustGatewayPacfileResult> InvokeAsync(GetZeroTrustGatewayPacfileArgs args, InvokeOptions? opts = null)
        public static Output<GetZeroTrustGatewayPacfileResult> Invoke(GetZeroTrustGatewayPacfileInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetZeroTrustGatewayPacfileResult> getZeroTrustGatewayPacfile(GetZeroTrustGatewayPacfileArgs args, InvokeOptions options)
    public static Output<GetZeroTrustGatewayPacfileResult> getZeroTrustGatewayPacfile(GetZeroTrustGatewayPacfileArgs args, InvokeOptions options)
    
    fn::invoke:
      function: cloudflare:index/getZeroTrustGatewayPacfile:getZeroTrustGatewayPacfile
      arguments:
        # arguments dictionary

    The following arguments are supported:

    AccountId string
    PacfileId string
    AccountId string
    PacfileId string
    accountId String
    pacfileId String
    accountId string
    pacfileId string
    accountId String
    pacfileId String

    getZeroTrustGatewayPacfile Result

    The following output properties are available:

    AccountId string
    Contents string
    Actual contents of the PAC file
    CreatedAt string
    Description string
    Detailed description of the PAC file.
    Id string
    The ID of this resource.
    Name string
    Name of the PAC file.
    PacfileId string
    Slug string
    URL-friendly version of the PAC file name.
    UpdatedAt string
    Url string
    Unique URL to download the PAC file.
    AccountId string
    Contents string
    Actual contents of the PAC file
    CreatedAt string
    Description string
    Detailed description of the PAC file.
    Id string
    The ID of this resource.
    Name string
    Name of the PAC file.
    PacfileId string
    Slug string
    URL-friendly version of the PAC file name.
    UpdatedAt string
    Url string
    Unique URL to download the PAC file.
    accountId String
    contents String
    Actual contents of the PAC file
    createdAt String
    description String
    Detailed description of the PAC file.
    id String
    The ID of this resource.
    name String
    Name of the PAC file.
    pacfileId String
    slug String
    URL-friendly version of the PAC file name.
    updatedAt String
    url String
    Unique URL to download the PAC file.
    accountId string
    contents string
    Actual contents of the PAC file
    createdAt string
    description string
    Detailed description of the PAC file.
    id string
    The ID of this resource.
    name string
    Name of the PAC file.
    pacfileId string
    slug string
    URL-friendly version of the PAC file name.
    updatedAt string
    url string
    Unique URL to download the PAC file.
    account_id str
    contents str
    Actual contents of the PAC file
    created_at str
    description str
    Detailed description of the PAC file.
    id str
    The ID of this resource.
    name str
    Name of the PAC file.
    pacfile_id str
    slug str
    URL-friendly version of the PAC file name.
    updated_at str
    url str
    Unique URL to download the PAC file.
    accountId String
    contents String
    Actual contents of the PAC file
    createdAt String
    description String
    Detailed description of the PAC file.
    id String
    The ID of this resource.
    name String
    Name of the PAC file.
    pacfileId String
    slug String
    URL-friendly version of the PAC file name.
    updatedAt String
    url String
    Unique URL to download the PAC file.

    Package Details

    Repository
    Cloudflare pulumi/pulumi-cloudflare
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the cloudflare Terraform Provider.
    cloudflare logo
    Viewing docs for Cloudflare v6.14.0
    published on Thursday, Apr 2, 2026 by Pulumi
      Try Pulumi Cloud free. Your team will thank you.