1. Packages
  2. Cloudflare Provider
  3. API Docs
  4. ZeroTrustDeviceSettings
Cloudflare v6.4.1 published on Wednesday, Jul 16, 2025 by Pulumi

cloudflare.ZeroTrustDeviceSettings

Explore with Pulumi AI

cloudflare logo
Cloudflare v6.4.1 published on Wednesday, Jul 16, 2025 by Pulumi

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as cloudflare from "@pulumi/cloudflare";
    
    const exampleZeroTrustDeviceSettings = new cloudflare.ZeroTrustDeviceSettings("example_zero_trust_device_settings", {
        accountId: "699d98642c564d2e855e9661899b7252",
        disableForTime: 0,
        gatewayProxyEnabled: true,
        gatewayUdpProxyEnabled: true,
        rootCertificateInstallationEnabled: true,
        useZtVirtualIp: true,
    });
    
    import pulumi
    import pulumi_cloudflare as cloudflare
    
    example_zero_trust_device_settings = cloudflare.ZeroTrustDeviceSettings("example_zero_trust_device_settings",
        account_id="699d98642c564d2e855e9661899b7252",
        disable_for_time=0,
        gateway_proxy_enabled=True,
        gateway_udp_proxy_enabled=True,
        root_certificate_installation_enabled=True,
        use_zt_virtual_ip=True)
    
    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.NewZeroTrustDeviceSettings(ctx, "example_zero_trust_device_settings", &cloudflare.ZeroTrustDeviceSettingsArgs{
    			AccountId:                          pulumi.String("699d98642c564d2e855e9661899b7252"),
    			DisableForTime:                     pulumi.Float64(0),
    			GatewayProxyEnabled:                pulumi.Bool(true),
    			GatewayUdpProxyEnabled:             pulumi.Bool(true),
    			RootCertificateInstallationEnabled: pulumi.Bool(true),
    			UseZtVirtualIp:                     pulumi.Bool(true),
    		})
    		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 exampleZeroTrustDeviceSettings = new Cloudflare.ZeroTrustDeviceSettings("example_zero_trust_device_settings", new()
        {
            AccountId = "699d98642c564d2e855e9661899b7252",
            DisableForTime = 0,
            GatewayProxyEnabled = true,
            GatewayUdpProxyEnabled = true,
            RootCertificateInstallationEnabled = true,
            UseZtVirtualIp = true,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.cloudflare.ZeroTrustDeviceSettings;
    import com.pulumi.cloudflare.ZeroTrustDeviceSettingsArgs;
    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 exampleZeroTrustDeviceSettings = new ZeroTrustDeviceSettings("exampleZeroTrustDeviceSettings", ZeroTrustDeviceSettingsArgs.builder()
                .accountId("699d98642c564d2e855e9661899b7252")
                .disableForTime(0.0)
                .gatewayProxyEnabled(true)
                .gatewayUdpProxyEnabled(true)
                .rootCertificateInstallationEnabled(true)
                .useZtVirtualIp(true)
                .build());
    
        }
    }
    
    resources:
      exampleZeroTrustDeviceSettings:
        type: cloudflare:ZeroTrustDeviceSettings
        name: example_zero_trust_device_settings
        properties:
          accountId: 699d98642c564d2e855e9661899b7252
          disableForTime: 0
          gatewayProxyEnabled: true
          gatewayUdpProxyEnabled: true
          rootCertificateInstallationEnabled: true
          useZtVirtualIp: true
    

    Create ZeroTrustDeviceSettings Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new ZeroTrustDeviceSettings(name: string, args: ZeroTrustDeviceSettingsArgs, opts?: CustomResourceOptions);
    @overload
    def ZeroTrustDeviceSettings(resource_name: str,
                                args: ZeroTrustDeviceSettingsArgs,
                                opts: Optional[ResourceOptions] = None)
    
    @overload
    def ZeroTrustDeviceSettings(resource_name: str,
                                opts: Optional[ResourceOptions] = None,
                                account_id: Optional[str] = None,
                                disable_for_time: Optional[float] = None,
                                gateway_proxy_enabled: Optional[bool] = None,
                                gateway_udp_proxy_enabled: Optional[bool] = None,
                                root_certificate_installation_enabled: Optional[bool] = None,
                                use_zt_virtual_ip: Optional[bool] = None)
    func NewZeroTrustDeviceSettings(ctx *Context, name string, args ZeroTrustDeviceSettingsArgs, opts ...ResourceOption) (*ZeroTrustDeviceSettings, error)
    public ZeroTrustDeviceSettings(string name, ZeroTrustDeviceSettingsArgs args, CustomResourceOptions? opts = null)
    public ZeroTrustDeviceSettings(String name, ZeroTrustDeviceSettingsArgs args)
    public ZeroTrustDeviceSettings(String name, ZeroTrustDeviceSettingsArgs args, CustomResourceOptions options)
    
    type: cloudflare:ZeroTrustDeviceSettings
    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 ZeroTrustDeviceSettingsArgs
    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 ZeroTrustDeviceSettingsArgs
    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 ZeroTrustDeviceSettingsArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ZeroTrustDeviceSettingsArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ZeroTrustDeviceSettingsArgs
    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 zeroTrustDeviceSettingsResource = new Cloudflare.ZeroTrustDeviceSettings("zeroTrustDeviceSettingsResource", new()
    {
        AccountId = "string",
        DisableForTime = 0,
        GatewayProxyEnabled = false,
        GatewayUdpProxyEnabled = false,
        RootCertificateInstallationEnabled = false,
        UseZtVirtualIp = false,
    });
    
    example, err := cloudflare.NewZeroTrustDeviceSettings(ctx, "zeroTrustDeviceSettingsResource", &cloudflare.ZeroTrustDeviceSettingsArgs{
    	AccountId:                          pulumi.String("string"),
    	DisableForTime:                     pulumi.Float64(0),
    	GatewayProxyEnabled:                pulumi.Bool(false),
    	GatewayUdpProxyEnabled:             pulumi.Bool(false),
    	RootCertificateInstallationEnabled: pulumi.Bool(false),
    	UseZtVirtualIp:                     pulumi.Bool(false),
    })
    
    var zeroTrustDeviceSettingsResource = new ZeroTrustDeviceSettings("zeroTrustDeviceSettingsResource", ZeroTrustDeviceSettingsArgs.builder()
        .accountId("string")
        .disableForTime(0.0)
        .gatewayProxyEnabled(false)
        .gatewayUdpProxyEnabled(false)
        .rootCertificateInstallationEnabled(false)
        .useZtVirtualIp(false)
        .build());
    
    zero_trust_device_settings_resource = cloudflare.ZeroTrustDeviceSettings("zeroTrustDeviceSettingsResource",
        account_id="string",
        disable_for_time=0,
        gateway_proxy_enabled=False,
        gateway_udp_proxy_enabled=False,
        root_certificate_installation_enabled=False,
        use_zt_virtual_ip=False)
    
    const zeroTrustDeviceSettingsResource = new cloudflare.ZeroTrustDeviceSettings("zeroTrustDeviceSettingsResource", {
        accountId: "string",
        disableForTime: 0,
        gatewayProxyEnabled: false,
        gatewayUdpProxyEnabled: false,
        rootCertificateInstallationEnabled: false,
        useZtVirtualIp: false,
    });
    
    type: cloudflare:ZeroTrustDeviceSettings
    properties:
        accountId: string
        disableForTime: 0
        gatewayProxyEnabled: false
        gatewayUdpProxyEnabled: false
        rootCertificateInstallationEnabled: false
        useZtVirtualIp: false
    

    ZeroTrustDeviceSettings 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 ZeroTrustDeviceSettings resource accepts the following input properties:

    AccountId string
    DisableForTime double
    Sets the time limit, in seconds, that a user can use an override code to bypass WARP.
    GatewayProxyEnabled bool
    Enable gateway proxy filtering on TCP.
    GatewayUdpProxyEnabled bool
    Enable gateway proxy filtering on UDP.
    RootCertificateInstallationEnabled bool
    Enable installation of cloudflare managed root certificate.
    UseZtVirtualIp bool
    Enable using CGNAT virtual IPv4.
    AccountId string
    DisableForTime float64
    Sets the time limit, in seconds, that a user can use an override code to bypass WARP.
    GatewayProxyEnabled bool
    Enable gateway proxy filtering on TCP.
    GatewayUdpProxyEnabled bool
    Enable gateway proxy filtering on UDP.
    RootCertificateInstallationEnabled bool
    Enable installation of cloudflare managed root certificate.
    UseZtVirtualIp bool
    Enable using CGNAT virtual IPv4.
    accountId String
    disableForTime Double
    Sets the time limit, in seconds, that a user can use an override code to bypass WARP.
    gatewayProxyEnabled Boolean
    Enable gateway proxy filtering on TCP.
    gatewayUdpProxyEnabled Boolean
    Enable gateway proxy filtering on UDP.
    rootCertificateInstallationEnabled Boolean
    Enable installation of cloudflare managed root certificate.
    useZtVirtualIp Boolean
    Enable using CGNAT virtual IPv4.
    accountId string
    disableForTime number
    Sets the time limit, in seconds, that a user can use an override code to bypass WARP.
    gatewayProxyEnabled boolean
    Enable gateway proxy filtering on TCP.
    gatewayUdpProxyEnabled boolean
    Enable gateway proxy filtering on UDP.
    rootCertificateInstallationEnabled boolean
    Enable installation of cloudflare managed root certificate.
    useZtVirtualIp boolean
    Enable using CGNAT virtual IPv4.
    account_id str
    disable_for_time float
    Sets the time limit, in seconds, that a user can use an override code to bypass WARP.
    gateway_proxy_enabled bool
    Enable gateway proxy filtering on TCP.
    gateway_udp_proxy_enabled bool
    Enable gateway proxy filtering on UDP.
    root_certificate_installation_enabled bool
    Enable installation of cloudflare managed root certificate.
    use_zt_virtual_ip bool
    Enable using CGNAT virtual IPv4.
    accountId String
    disableForTime Number
    Sets the time limit, in seconds, that a user can use an override code to bypass WARP.
    gatewayProxyEnabled Boolean
    Enable gateway proxy filtering on TCP.
    gatewayUdpProxyEnabled Boolean
    Enable gateway proxy filtering on UDP.
    rootCertificateInstallationEnabled Boolean
    Enable installation of cloudflare managed root certificate.
    useZtVirtualIp Boolean
    Enable using CGNAT virtual IPv4.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the ZeroTrustDeviceSettings resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing ZeroTrustDeviceSettings Resource

    Get an existing ZeroTrustDeviceSettings 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?: ZeroTrustDeviceSettingsState, opts?: CustomResourceOptions): ZeroTrustDeviceSettings
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            account_id: Optional[str] = None,
            disable_for_time: Optional[float] = None,
            gateway_proxy_enabled: Optional[bool] = None,
            gateway_udp_proxy_enabled: Optional[bool] = None,
            root_certificate_installation_enabled: Optional[bool] = None,
            use_zt_virtual_ip: Optional[bool] = None) -> ZeroTrustDeviceSettings
    func GetZeroTrustDeviceSettings(ctx *Context, name string, id IDInput, state *ZeroTrustDeviceSettingsState, opts ...ResourceOption) (*ZeroTrustDeviceSettings, error)
    public static ZeroTrustDeviceSettings Get(string name, Input<string> id, ZeroTrustDeviceSettingsState? state, CustomResourceOptions? opts = null)
    public static ZeroTrustDeviceSettings get(String name, Output<String> id, ZeroTrustDeviceSettingsState state, CustomResourceOptions options)
    resources:  _:    type: cloudflare:ZeroTrustDeviceSettings    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.
    The following state arguments are supported:
    AccountId string
    DisableForTime double
    Sets the time limit, in seconds, that a user can use an override code to bypass WARP.
    GatewayProxyEnabled bool
    Enable gateway proxy filtering on TCP.
    GatewayUdpProxyEnabled bool
    Enable gateway proxy filtering on UDP.
    RootCertificateInstallationEnabled bool
    Enable installation of cloudflare managed root certificate.
    UseZtVirtualIp bool
    Enable using CGNAT virtual IPv4.
    AccountId string
    DisableForTime float64
    Sets the time limit, in seconds, that a user can use an override code to bypass WARP.
    GatewayProxyEnabled bool
    Enable gateway proxy filtering on TCP.
    GatewayUdpProxyEnabled bool
    Enable gateway proxy filtering on UDP.
    RootCertificateInstallationEnabled bool
    Enable installation of cloudflare managed root certificate.
    UseZtVirtualIp bool
    Enable using CGNAT virtual IPv4.
    accountId String
    disableForTime Double
    Sets the time limit, in seconds, that a user can use an override code to bypass WARP.
    gatewayProxyEnabled Boolean
    Enable gateway proxy filtering on TCP.
    gatewayUdpProxyEnabled Boolean
    Enable gateway proxy filtering on UDP.
    rootCertificateInstallationEnabled Boolean
    Enable installation of cloudflare managed root certificate.
    useZtVirtualIp Boolean
    Enable using CGNAT virtual IPv4.
    accountId string
    disableForTime number
    Sets the time limit, in seconds, that a user can use an override code to bypass WARP.
    gatewayProxyEnabled boolean
    Enable gateway proxy filtering on TCP.
    gatewayUdpProxyEnabled boolean
    Enable gateway proxy filtering on UDP.
    rootCertificateInstallationEnabled boolean
    Enable installation of cloudflare managed root certificate.
    useZtVirtualIp boolean
    Enable using CGNAT virtual IPv4.
    account_id str
    disable_for_time float
    Sets the time limit, in seconds, that a user can use an override code to bypass WARP.
    gateway_proxy_enabled bool
    Enable gateway proxy filtering on TCP.
    gateway_udp_proxy_enabled bool
    Enable gateway proxy filtering on UDP.
    root_certificate_installation_enabled bool
    Enable installation of cloudflare managed root certificate.
    use_zt_virtual_ip bool
    Enable using CGNAT virtual IPv4.
    accountId String
    disableForTime Number
    Sets the time limit, in seconds, that a user can use an override code to bypass WARP.
    gatewayProxyEnabled Boolean
    Enable gateway proxy filtering on TCP.
    gatewayUdpProxyEnabled Boolean
    Enable gateway proxy filtering on UDP.
    rootCertificateInstallationEnabled Boolean
    Enable installation of cloudflare managed root certificate.
    useZtVirtualIp Boolean
    Enable using CGNAT virtual IPv4.

    Package Details

    Repository
    Cloudflare pulumi/pulumi-cloudflare
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the cloudflare Terraform Provider.
    cloudflare logo
    Cloudflare v6.4.1 published on Wednesday, Jul 16, 2025 by Pulumi