published on Thursday, Apr 2, 2026 by Pulumi
published on Thursday, Apr 2, 2026 by Pulumi
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as cloudflare from "@pulumi/cloudflare";
const exampleZeroTrustGatewayPacfile = new cloudflare.ZeroTrustGatewayPacfile("example_zero_trust_gateway_pacfile", {
accountId: "699d98642c564d2e855e9661899b7252",
contents: "function FindProxyForURL(url, host) { return \"DIRECT\"; }",
name: "Devops team",
description: "PAC file for Devops team",
slug: "pac_devops",
});
import pulumi
import pulumi_cloudflare as cloudflare
example_zero_trust_gateway_pacfile = cloudflare.ZeroTrustGatewayPacfile("example_zero_trust_gateway_pacfile",
account_id="699d98642c564d2e855e9661899b7252",
contents="function FindProxyForURL(url, host) { return \"DIRECT\"; }",
name="Devops team",
description="PAC file for Devops team",
slug="pac_devops")
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.NewZeroTrustGatewayPacfile(ctx, "example_zero_trust_gateway_pacfile", &cloudflare.ZeroTrustGatewayPacfileArgs{
AccountId: pulumi.String("699d98642c564d2e855e9661899b7252"),
Contents: pulumi.String("function FindProxyForURL(url, host) { return \"DIRECT\"; }"),
Name: pulumi.String("Devops team"),
Description: pulumi.String("PAC file for Devops team"),
Slug: pulumi.String("pac_devops"),
})
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 = new Cloudflare.ZeroTrustGatewayPacfile("example_zero_trust_gateway_pacfile", new()
{
AccountId = "699d98642c564d2e855e9661899b7252",
Contents = "function FindProxyForURL(url, host) { return \"DIRECT\"; }",
Name = "Devops team",
Description = "PAC file for Devops team",
Slug = "pac_devops",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.cloudflare.ZeroTrustGatewayPacfile;
import com.pulumi.cloudflare.ZeroTrustGatewayPacfileArgs;
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) {
var exampleZeroTrustGatewayPacfile = new ZeroTrustGatewayPacfile("exampleZeroTrustGatewayPacfile", ZeroTrustGatewayPacfileArgs.builder()
.accountId("699d98642c564d2e855e9661899b7252")
.contents("function FindProxyForURL(url, host) { return \"DIRECT\"; }")
.name("Devops team")
.description("PAC file for Devops team")
.slug("pac_devops")
.build());
}
}
resources:
exampleZeroTrustGatewayPacfile:
type: cloudflare:ZeroTrustGatewayPacfile
name: example_zero_trust_gateway_pacfile
properties:
accountId: 699d98642c564d2e855e9661899b7252
contents: function FindProxyForURL(url, host) { return "DIRECT"; }
name: Devops team
description: PAC file for Devops team
slug: pac_devops
Create ZeroTrustGatewayPacfile Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ZeroTrustGatewayPacfile(name: string, args: ZeroTrustGatewayPacfileArgs, opts?: CustomResourceOptions);@overload
def ZeroTrustGatewayPacfile(resource_name: str,
args: ZeroTrustGatewayPacfileArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ZeroTrustGatewayPacfile(resource_name: str,
opts: Optional[ResourceOptions] = None,
account_id: Optional[str] = None,
contents: Optional[str] = None,
name: Optional[str] = None,
description: Optional[str] = None,
slug: Optional[str] = None)func NewZeroTrustGatewayPacfile(ctx *Context, name string, args ZeroTrustGatewayPacfileArgs, opts ...ResourceOption) (*ZeroTrustGatewayPacfile, error)public ZeroTrustGatewayPacfile(string name, ZeroTrustGatewayPacfileArgs args, CustomResourceOptions? opts = null)
public ZeroTrustGatewayPacfile(String name, ZeroTrustGatewayPacfileArgs args)
public ZeroTrustGatewayPacfile(String name, ZeroTrustGatewayPacfileArgs args, CustomResourceOptions options)
type: cloudflare:ZeroTrustGatewayPacfile
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args ZeroTrustGatewayPacfileArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args ZeroTrustGatewayPacfileArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args ZeroTrustGatewayPacfileArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ZeroTrustGatewayPacfileArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ZeroTrustGatewayPacfileArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var zeroTrustGatewayPacfileResource = new Cloudflare.Index.ZeroTrustGatewayPacfile("zeroTrustGatewayPacfileResource", new()
{
AccountId = "string",
Contents = "string",
Name = "string",
Description = "string",
Slug = "string",
});
example, err := cloudflare.NewZeroTrustGatewayPacfile(ctx, "zeroTrustGatewayPacfileResource", &cloudflare.ZeroTrustGatewayPacfileArgs{
AccountId: pulumi.String("string"),
Contents: pulumi.String("string"),
Name: pulumi.String("string"),
Description: pulumi.String("string"),
Slug: pulumi.String("string"),
})
var zeroTrustGatewayPacfileResource = new ZeroTrustGatewayPacfile("zeroTrustGatewayPacfileResource", ZeroTrustGatewayPacfileArgs.builder()
.accountId("string")
.contents("string")
.name("string")
.description("string")
.slug("string")
.build());
zero_trust_gateway_pacfile_resource = cloudflare.ZeroTrustGatewayPacfile("zeroTrustGatewayPacfileResource",
account_id="string",
contents="string",
name="string",
description="string",
slug="string")
const zeroTrustGatewayPacfileResource = new cloudflare.ZeroTrustGatewayPacfile("zeroTrustGatewayPacfileResource", {
accountId: "string",
contents: "string",
name: "string",
description: "string",
slug: "string",
});
type: cloudflare:ZeroTrustGatewayPacfile
properties:
accountId: string
contents: string
description: string
name: string
slug: string
ZeroTrustGatewayPacfile Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The ZeroTrustGatewayPacfile resource accepts the following input properties:
- Account
Id string - Contents string
- Actual contents of the PAC file
- Name string
- Name of the PAC file.
- Description string
- Detailed description of the PAC file.
- Slug string
- URL-friendly version of the PAC file name. If not provided, it will be auto-generated
- Account
Id string - Contents string
- Actual contents of the PAC file
- Name string
- Name of the PAC file.
- Description string
- Detailed description of the PAC file.
- Slug string
- URL-friendly version of the PAC file name. If not provided, it will be auto-generated
- account
Id String - contents String
- Actual contents of the PAC file
- name String
- Name of the PAC file.
- description String
- Detailed description of the PAC file.
- slug String
- URL-friendly version of the PAC file name. If not provided, it will be auto-generated
- account
Id string - contents string
- Actual contents of the PAC file
- name string
- Name of the PAC file.
- description string
- Detailed description of the PAC file.
- slug string
- URL-friendly version of the PAC file name. If not provided, it will be auto-generated
- account_
id str - contents str
- Actual contents of the PAC file
- name str
- Name of the PAC file.
- description str
- Detailed description of the PAC file.
- slug str
- URL-friendly version of the PAC file name. If not provided, it will be auto-generated
- account
Id String - contents String
- Actual contents of the PAC file
- name String
- Name of the PAC file.
- description String
- Detailed description of the PAC file.
- slug String
- URL-friendly version of the PAC file name. If not provided, it will be auto-generated
Outputs
All input properties are implicitly available as output properties. Additionally, the ZeroTrustGatewayPacfile resource produces the following output properties:
- created_
at str - id str
- The provider-assigned unique ID for this managed resource.
- updated_
at str - url str
- Unique URL to download the PAC file.
Look up Existing ZeroTrustGatewayPacfile Resource
Get an existing ZeroTrustGatewayPacfile resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: ZeroTrustGatewayPacfileState, opts?: CustomResourceOptions): ZeroTrustGatewayPacfile@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
account_id: Optional[str] = None,
contents: Optional[str] = None,
created_at: Optional[str] = None,
description: Optional[str] = None,
name: Optional[str] = None,
slug: Optional[str] = None,
updated_at: Optional[str] = None,
url: Optional[str] = None) -> ZeroTrustGatewayPacfilefunc GetZeroTrustGatewayPacfile(ctx *Context, name string, id IDInput, state *ZeroTrustGatewayPacfileState, opts ...ResourceOption) (*ZeroTrustGatewayPacfile, error)public static ZeroTrustGatewayPacfile Get(string name, Input<string> id, ZeroTrustGatewayPacfileState? state, CustomResourceOptions? opts = null)public static ZeroTrustGatewayPacfile get(String name, Output<String> id, ZeroTrustGatewayPacfileState state, CustomResourceOptions options)resources: _: type: cloudflare:ZeroTrustGatewayPacfile get: id: ${id}- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Account
Id string - Contents string
- Actual contents of the PAC file
- Created
At string - Description string
- Detailed description of the PAC file.
- Name string
- Name of the PAC file.
- Slug string
- URL-friendly version of the PAC file name. If not provided, it will be auto-generated
- Updated
At string - Url string
- Unique URL to download the PAC file.
- Account
Id string - Contents string
- Actual contents of the PAC file
- Created
At string - Description string
- Detailed description of the PAC file.
- Name string
- Name of the PAC file.
- Slug string
- URL-friendly version of the PAC file name. If not provided, it will be auto-generated
- Updated
At string - Url string
- Unique URL to download the PAC file.
- account
Id String - contents String
- Actual contents of the PAC file
- created
At String - description String
- Detailed description of the PAC file.
- name String
- Name of the PAC file.
- slug String
- URL-friendly version of the PAC file name. If not provided, it will be auto-generated
- updated
At String - url String
- Unique URL to download the PAC file.
- account
Id string - contents string
- Actual contents of the PAC file
- created
At string - description string
- Detailed description of the PAC file.
- name string
- Name of the PAC file.
- slug string
- URL-friendly version of the PAC file name. If not provided, it will be auto-generated
- updated
At 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.
- name str
- Name of the PAC file.
- slug str
- URL-friendly version of the PAC file name. If not provided, it will be auto-generated
- updated_
at str - url str
- Unique URL to download the PAC file.
- account
Id String - contents String
- Actual contents of the PAC file
- created
At String - description String
- Detailed description of the PAC file.
- name String
- Name of the PAC file.
- slug String
- URL-friendly version of the PAC file name. If not provided, it will be auto-generated
- updated
At String - url String
- Unique URL to download the PAC file.
Import
$ pulumi import cloudflare:index/zeroTrustGatewayPacfile:ZeroTrustGatewayPacfile example '<account_id>/<pacfile_id>'
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Cloudflare pulumi/pulumi-cloudflare
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
cloudflareTerraform Provider.
published on Thursday, Apr 2, 2026 by Pulumi
