Cloudflare v6.10.1 published on Wednesday, Oct 22, 2025 by Pulumi
cloudflare.getZeroTrustDeviceSettings
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as cloudflare from "@pulumi/cloudflare";
const exampleZeroTrustDeviceSettings = cloudflare.getZeroTrustDeviceSettings({
    accountId: "699d98642c564d2e855e9661899b7252",
});
import pulumi
import pulumi_cloudflare as cloudflare
example_zero_trust_device_settings = cloudflare.get_zero_trust_device_settings(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.LookupZeroTrustDeviceSettings(ctx, &cloudflare.LookupZeroTrustDeviceSettingsArgs{
			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 exampleZeroTrustDeviceSettings = Cloudflare.GetZeroTrustDeviceSettings.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.GetZeroTrustDeviceSettingsArgs;
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 exampleZeroTrustDeviceSettings = CloudflareFunctions.getZeroTrustDeviceSettings(GetZeroTrustDeviceSettingsArgs.builder()
            .accountId("699d98642c564d2e855e9661899b7252")
            .build());
    }
}
variables:
  exampleZeroTrustDeviceSettings:
    fn::invoke:
      function: cloudflare:getZeroTrustDeviceSettings
      arguments:
        accountId: 699d98642c564d2e855e9661899b7252
Using getZeroTrustDeviceSettings
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 getZeroTrustDeviceSettings(args: GetZeroTrustDeviceSettingsArgs, opts?: InvokeOptions): Promise<GetZeroTrustDeviceSettingsResult>
function getZeroTrustDeviceSettingsOutput(args: GetZeroTrustDeviceSettingsOutputArgs, opts?: InvokeOptions): Output<GetZeroTrustDeviceSettingsResult>def get_zero_trust_device_settings(account_id: Optional[str] = None,
                                   opts: Optional[InvokeOptions] = None) -> GetZeroTrustDeviceSettingsResult
def get_zero_trust_device_settings_output(account_id: Optional[pulumi.Input[str]] = None,
                                   opts: Optional[InvokeOptions] = None) -> Output[GetZeroTrustDeviceSettingsResult]func LookupZeroTrustDeviceSettings(ctx *Context, args *LookupZeroTrustDeviceSettingsArgs, opts ...InvokeOption) (*LookupZeroTrustDeviceSettingsResult, error)
func LookupZeroTrustDeviceSettingsOutput(ctx *Context, args *LookupZeroTrustDeviceSettingsOutputArgs, opts ...InvokeOption) LookupZeroTrustDeviceSettingsResultOutput> Note: This function is named LookupZeroTrustDeviceSettings in the Go SDK.
public static class GetZeroTrustDeviceSettings 
{
    public static Task<GetZeroTrustDeviceSettingsResult> InvokeAsync(GetZeroTrustDeviceSettingsArgs args, InvokeOptions? opts = null)
    public static Output<GetZeroTrustDeviceSettingsResult> Invoke(GetZeroTrustDeviceSettingsInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetZeroTrustDeviceSettingsResult> getZeroTrustDeviceSettings(GetZeroTrustDeviceSettingsArgs args, InvokeOptions options)
public static Output<GetZeroTrustDeviceSettingsResult> getZeroTrustDeviceSettings(GetZeroTrustDeviceSettingsArgs args, InvokeOptions options)
fn::invoke:
  function: cloudflare:index/getZeroTrustDeviceSettings:getZeroTrustDeviceSettings
  arguments:
    # arguments dictionaryThe following arguments are supported:
- AccountId string
- AccountId string
- accountId String
- accountId string
- account_id str
- accountId String
getZeroTrustDeviceSettings Result
The following output properties are available:
- AccountId string
- DisableFor doubleTime 
- Sets the time limit, in seconds, that a user can use an override code to bypass WARP.
- GatewayProxy boolEnabled 
- Enable gateway proxy filtering on TCP.
- GatewayUdp boolProxy Enabled 
- Enable gateway proxy filtering on UDP.
- Id string
- The provider-assigned unique ID for this managed resource.
- RootCertificate boolInstallation Enabled 
- Enable installation of cloudflare managed root certificate.
- UseZt boolVirtual Ip 
- Enable using CGNAT virtual IPv4.
- AccountId string
- DisableFor float64Time 
- Sets the time limit, in seconds, that a user can use an override code to bypass WARP.
- GatewayProxy boolEnabled 
- Enable gateway proxy filtering on TCP.
- GatewayUdp boolProxy Enabled 
- Enable gateway proxy filtering on UDP.
- Id string
- The provider-assigned unique ID for this managed resource.
- RootCertificate boolInstallation Enabled 
- Enable installation of cloudflare managed root certificate.
- UseZt boolVirtual Ip 
- Enable using CGNAT virtual IPv4.
- accountId String
- disableFor DoubleTime 
- Sets the time limit, in seconds, that a user can use an override code to bypass WARP.
- gatewayProxy BooleanEnabled 
- Enable gateway proxy filtering on TCP.
- gatewayUdp BooleanProxy Enabled 
- Enable gateway proxy filtering on UDP.
- id String
- The provider-assigned unique ID for this managed resource.
- rootCertificate BooleanInstallation Enabled 
- Enable installation of cloudflare managed root certificate.
- useZt BooleanVirtual Ip 
- Enable using CGNAT virtual IPv4.
- accountId string
- disableFor numberTime 
- Sets the time limit, in seconds, that a user can use an override code to bypass WARP.
- gatewayProxy booleanEnabled 
- Enable gateway proxy filtering on TCP.
- gatewayUdp booleanProxy Enabled 
- Enable gateway proxy filtering on UDP.
- id string
- The provider-assigned unique ID for this managed resource.
- rootCertificate booleanInstallation Enabled 
- Enable installation of cloudflare managed root certificate.
- useZt booleanVirtual Ip 
- Enable using CGNAT virtual IPv4.
- account_id str
- disable_for_ floattime 
- Sets the time limit, in seconds, that a user can use an override code to bypass WARP.
- gateway_proxy_ boolenabled 
- Enable gateway proxy filtering on TCP.
- gateway_udp_ boolproxy_ enabled 
- Enable gateway proxy filtering on UDP.
- id str
- The provider-assigned unique ID for this managed resource.
- root_certificate_ boolinstallation_ enabled 
- Enable installation of cloudflare managed root certificate.
- use_zt_ boolvirtual_ ip 
- Enable using CGNAT virtual IPv4.
- accountId String
- disableFor NumberTime 
- Sets the time limit, in seconds, that a user can use an override code to bypass WARP.
- gatewayProxy BooleanEnabled 
- Enable gateway proxy filtering on TCP.
- gatewayUdp BooleanProxy Enabled 
- Enable gateway proxy filtering on UDP.
- id String
- The provider-assigned unique ID for this managed resource.
- rootCertificate BooleanInstallation Enabled 
- Enable installation of cloudflare managed root certificate.
- useZt BooleanVirtual Ip 
- Enable using CGNAT virtual IPv4.
Package Details
- Repository
- Cloudflare pulumi/pulumi-cloudflare
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the cloudflareTerraform Provider.
