1. Packages
  2. Cloudflare Provider
  3. API Docs
  4. getZeroTrustGatewayPacfiles
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 exampleZeroTrustGatewayPacfiles = cloudflare.getZeroTrustGatewayPacfiles({
        accountId: "699d98642c564d2e855e9661899b7252",
    });
    
    import pulumi
    import pulumi_cloudflare as cloudflare
    
    example_zero_trust_gateway_pacfiles = cloudflare.get_zero_trust_gateway_pacfiles(account_id="699d98642c564d2e855e9661899b7252")
    
    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.LookupZeroTrustGatewayPacfiles(ctx, &cloudflare.LookupZeroTrustGatewayPacfilesArgs{
    			AccountId: "699d98642c564d2e855e9661899b7252",
    		}, 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 exampleZeroTrustGatewayPacfiles = Cloudflare.GetZeroTrustGatewayPacfiles.Invoke(new()
        {
            AccountId = "699d98642c564d2e855e9661899b7252",
        });
    
    });
    
    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.GetZeroTrustGatewayPacfilesArgs;
    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 exampleZeroTrustGatewayPacfiles = CloudflareFunctions.getZeroTrustGatewayPacfiles(GetZeroTrustGatewayPacfilesArgs.builder()
                .accountId("699d98642c564d2e855e9661899b7252")
                .build());
    
        }
    }
    
    variables:
      exampleZeroTrustGatewayPacfiles:
        fn::invoke:
          function: cloudflare:getZeroTrustGatewayPacfiles
          arguments:
            accountId: 699d98642c564d2e855e9661899b7252
    

    Using getZeroTrustGatewayPacfiles

    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 getZeroTrustGatewayPacfiles(args: GetZeroTrustGatewayPacfilesArgs, opts?: InvokeOptions): Promise<GetZeroTrustGatewayPacfilesResult>
    function getZeroTrustGatewayPacfilesOutput(args: GetZeroTrustGatewayPacfilesOutputArgs, opts?: InvokeOptions): Output<GetZeroTrustGatewayPacfilesResult>
    def get_zero_trust_gateway_pacfiles(account_id: Optional[str] = None,
                                        max_items: Optional[int] = None,
                                        opts: Optional[InvokeOptions] = None) -> GetZeroTrustGatewayPacfilesResult
    def get_zero_trust_gateway_pacfiles_output(account_id: Optional[pulumi.Input[str]] = None,
                                        max_items: Optional[pulumi.Input[int]] = None,
                                        opts: Optional[InvokeOptions] = None) -> Output[GetZeroTrustGatewayPacfilesResult]
    func LookupZeroTrustGatewayPacfiles(ctx *Context, args *LookupZeroTrustGatewayPacfilesArgs, opts ...InvokeOption) (*LookupZeroTrustGatewayPacfilesResult, error)
    func LookupZeroTrustGatewayPacfilesOutput(ctx *Context, args *LookupZeroTrustGatewayPacfilesOutputArgs, opts ...InvokeOption) LookupZeroTrustGatewayPacfilesResultOutput

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

    public static class GetZeroTrustGatewayPacfiles 
    {
        public static Task<GetZeroTrustGatewayPacfilesResult> InvokeAsync(GetZeroTrustGatewayPacfilesArgs args, InvokeOptions? opts = null)
        public static Output<GetZeroTrustGatewayPacfilesResult> Invoke(GetZeroTrustGatewayPacfilesInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetZeroTrustGatewayPacfilesResult> getZeroTrustGatewayPacfiles(GetZeroTrustGatewayPacfilesArgs args, InvokeOptions options)
    public static Output<GetZeroTrustGatewayPacfilesResult> getZeroTrustGatewayPacfiles(GetZeroTrustGatewayPacfilesArgs args, InvokeOptions options)
    
    fn::invoke:
      function: cloudflare:index/getZeroTrustGatewayPacfiles:getZeroTrustGatewayPacfiles
      arguments:
        # arguments dictionary

    The following arguments are supported:

    AccountId string
    MaxItems int
    Max items to fetch, default: 1000
    AccountId string
    MaxItems int
    Max items to fetch, default: 1000
    accountId String
    maxItems Integer
    Max items to fetch, default: 1000
    accountId string
    maxItems number
    Max items to fetch, default: 1000
    account_id str
    max_items int
    Max items to fetch, default: 1000
    accountId String
    maxItems Number
    Max items to fetch, default: 1000

    getZeroTrustGatewayPacfiles Result

    The following output properties are available:

    AccountId string
    Id string
    The provider-assigned unique ID for this managed resource.
    Results List<GetZeroTrustGatewayPacfilesResult>
    The items returned by the data source
    MaxItems int
    Max items to fetch, default: 1000
    AccountId string
    Id string
    The provider-assigned unique ID for this managed resource.
    Results []GetZeroTrustGatewayPacfilesResult
    The items returned by the data source
    MaxItems int
    Max items to fetch, default: 1000
    accountId String
    id String
    The provider-assigned unique ID for this managed resource.
    results List<GetZeroTrustGatewayPacfilesResult>
    The items returned by the data source
    maxItems Integer
    Max items to fetch, default: 1000
    accountId string
    id string
    The provider-assigned unique ID for this managed resource.
    results GetZeroTrustGatewayPacfilesResult[]
    The items returned by the data source
    maxItems number
    Max items to fetch, default: 1000
    account_id str
    id str
    The provider-assigned unique ID for this managed resource.
    results Sequence[GetZeroTrustGatewayPacfilesResult]
    The items returned by the data source
    max_items int
    Max items to fetch, default: 1000
    accountId String
    id String
    The provider-assigned unique ID for this managed resource.
    results List<Property Map>
    The items returned by the data source
    maxItems Number
    Max items to fetch, default: 1000

    Supporting Types

    GetZeroTrustGatewayPacfilesResult

    CreatedAt string
    Description string
    Detailed description of the PAC file.
    Id string
    Name string
    Name of the PAC file.
    Slug string
    URL-friendly version of the PAC file name.
    UpdatedAt string
    Url string
    Unique URL to download the PAC file.
    CreatedAt string
    Description string
    Detailed description of the PAC file.
    Id string
    Name string
    Name of the PAC file.
    Slug string
    URL-friendly version of the PAC file name.
    UpdatedAt string
    Url string
    Unique URL to download the PAC file.
    createdAt String
    description String
    Detailed description of the PAC file.
    id String
    name String
    Name of the PAC file.
    slug String
    URL-friendly version of the PAC file name.
    updatedAt String
    url String
    Unique URL to download the PAC file.
    createdAt string
    description string
    Detailed description of the PAC file.
    id string
    name string
    Name of the PAC file.
    slug string
    URL-friendly version of the PAC file name.
    updatedAt string
    url string
    Unique URL to download the PAC file.
    created_at str
    description str
    Detailed description of the PAC file.
    id str
    name str
    Name of the PAC file.
    slug str
    URL-friendly version of the PAC file name.
    updated_at str
    url str
    Unique URL to download the PAC file.
    createdAt String
    description String
    Detailed description of the PAC file.
    id String
    name String
    Name of the PAC file.
    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.