1. Packages
  2. Cloudflare Provider
  3. API Docs
  4. ZeroTrustDexTest
Cloudflare v6.0.0 published on Monday, Apr 14, 2025 by Pulumi

cloudflare.ZeroTrustDexTest

Explore with Pulumi AI

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as cloudflare from "@pulumi/cloudflare";

const exampleZeroTrustDexTest = new cloudflare.ZeroTrustDexTest("example_zero_trust_dex_test", {
    accountId: "699d98642c564d2e855e9661899b7252",
    data: {
        host: "https://dash.cloudflare.com",
        kind: "http",
        method: "GET",
    },
    enabled: true,
    interval: "30m",
    name: "HTTP dash health check",
    description: "Checks the dash endpoint every 30 minutes",
    targetPolicies: [{
        id: "id",
        "default": true,
        name: "name",
    }],
    targeted: true,
});
Copy
import pulumi
import pulumi_cloudflare as cloudflare

example_zero_trust_dex_test = cloudflare.ZeroTrustDexTest("example_zero_trust_dex_test",
    account_id="699d98642c564d2e855e9661899b7252",
    data={
        "host": "https://dash.cloudflare.com",
        "kind": "http",
        "method": "GET",
    },
    enabled=True,
    interval="30m",
    name="HTTP dash health check",
    description="Checks the dash endpoint every 30 minutes",
    target_policies=[{
        "id": "id",
        "default": True,
        "name": "name",
    }],
    targeted=True)
Copy
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.NewZeroTrustDexTest(ctx, "example_zero_trust_dex_test", &cloudflare.ZeroTrustDexTestArgs{
			AccountId: pulumi.String("699d98642c564d2e855e9661899b7252"),
			Data: &cloudflare.ZeroTrustDexTestDataArgs{
				Host:   pulumi.String("https://dash.cloudflare.com"),
				Kind:   pulumi.String("http"),
				Method: pulumi.String("GET"),
			},
			Enabled:     pulumi.Bool(true),
			Interval:    pulumi.String("30m"),
			Name:        pulumi.String("HTTP dash health check"),
			Description: pulumi.String("Checks the dash endpoint every 30 minutes"),
			TargetPolicies: cloudflare.ZeroTrustDexTestTargetPolicyArray{
				&cloudflare.ZeroTrustDexTestTargetPolicyArgs{
					Id:      pulumi.String("id"),
					Default: pulumi.Bool(true),
					Name:    pulumi.String("name"),
				},
			},
			Targeted: pulumi.Bool(true),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Cloudflare = Pulumi.Cloudflare;

return await Deployment.RunAsync(() => 
{
    var exampleZeroTrustDexTest = new Cloudflare.ZeroTrustDexTest("example_zero_trust_dex_test", new()
    {
        AccountId = "699d98642c564d2e855e9661899b7252",
        Data = new Cloudflare.Inputs.ZeroTrustDexTestDataArgs
        {
            Host = "https://dash.cloudflare.com",
            Kind = "http",
            Method = "GET",
        },
        Enabled = true,
        Interval = "30m",
        Name = "HTTP dash health check",
        Description = "Checks the dash endpoint every 30 minutes",
        TargetPolicies = new[]
        {
            new Cloudflare.Inputs.ZeroTrustDexTestTargetPolicyArgs
            {
                Id = "id",
                Default = true,
                Name = "name",
            },
        },
        Targeted = true,
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.cloudflare.ZeroTrustDexTest;
import com.pulumi.cloudflare.ZeroTrustDexTestArgs;
import com.pulumi.cloudflare.inputs.ZeroTrustDexTestDataArgs;
import com.pulumi.cloudflare.inputs.ZeroTrustDexTestTargetPolicyArgs;
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 exampleZeroTrustDexTest = new ZeroTrustDexTest("exampleZeroTrustDexTest", ZeroTrustDexTestArgs.builder()
            .accountId("699d98642c564d2e855e9661899b7252")
            .data(ZeroTrustDexTestDataArgs.builder()
                .host("https://dash.cloudflare.com")
                .kind("http")
                .method("GET")
                .build())
            .enabled(true)
            .interval("30m")
            .name("HTTP dash health check")
            .description("Checks the dash endpoint every 30 minutes")
            .targetPolicies(ZeroTrustDexTestTargetPolicyArgs.builder()
                .id("id")
                .default_(true)
                .name("name")
                .build())
            .targeted(true)
            .build());

    }
}
Copy
resources:
  exampleZeroTrustDexTest:
    type: cloudflare:ZeroTrustDexTest
    name: example_zero_trust_dex_test
    properties:
      accountId: 699d98642c564d2e855e9661899b7252
      data:
        host: https://dash.cloudflare.com
        kind: http
        method: GET
      enabled: true
      interval: 30m
      name: HTTP dash health check
      description: Checks the dash endpoint every 30 minutes
      targetPolicies:
        - id: id
          default: true
          name: name
      targeted: true
Copy

Create ZeroTrustDexTest Resource

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

Constructor syntax

new ZeroTrustDexTest(name: string, args: ZeroTrustDexTestArgs, opts?: CustomResourceOptions);
@overload
def ZeroTrustDexTest(resource_name: str,
                     args: ZeroTrustDexTestArgs,
                     opts: Optional[ResourceOptions] = None)

@overload
def ZeroTrustDexTest(resource_name: str,
                     opts: Optional[ResourceOptions] = None,
                     account_id: Optional[str] = None,
                     data: Optional[ZeroTrustDexTestDataArgs] = None,
                     enabled: Optional[bool] = None,
                     interval: Optional[str] = None,
                     name: Optional[str] = None,
                     description: Optional[str] = None,
                     target_policies: Optional[Sequence[ZeroTrustDexTestTargetPolicyArgs]] = None,
                     targeted: Optional[bool] = None)
func NewZeroTrustDexTest(ctx *Context, name string, args ZeroTrustDexTestArgs, opts ...ResourceOption) (*ZeroTrustDexTest, error)
public ZeroTrustDexTest(string name, ZeroTrustDexTestArgs args, CustomResourceOptions? opts = null)
public ZeroTrustDexTest(String name, ZeroTrustDexTestArgs args)
public ZeroTrustDexTest(String name, ZeroTrustDexTestArgs args, CustomResourceOptions options)
type: cloudflare:ZeroTrustDexTest
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. ZeroTrustDexTestArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. ZeroTrustDexTestArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. ZeroTrustDexTestArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. ZeroTrustDexTestArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. ZeroTrustDexTestArgs
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 zeroTrustDexTestResource = new Cloudflare.ZeroTrustDexTest("zeroTrustDexTestResource", new()
{
    AccountId = "string",
    Data = new Cloudflare.Inputs.ZeroTrustDexTestDataArgs
    {
        Host = "string",
        Kind = "string",
        Method = "string",
    },
    Enabled = false,
    Interval = "string",
    Name = "string",
    Description = "string",
    TargetPolicies = new[]
    {
        new Cloudflare.Inputs.ZeroTrustDexTestTargetPolicyArgs
        {
            Default = false,
            Id = "string",
            Name = "string",
        },
    },
    Targeted = false,
});
Copy
example, err := cloudflare.NewZeroTrustDexTest(ctx, "zeroTrustDexTestResource", &cloudflare.ZeroTrustDexTestArgs{
	AccountId: pulumi.String("string"),
	Data: &cloudflare.ZeroTrustDexTestDataArgs{
		Host:   pulumi.String("string"),
		Kind:   pulumi.String("string"),
		Method: pulumi.String("string"),
	},
	Enabled:     pulumi.Bool(false),
	Interval:    pulumi.String("string"),
	Name:        pulumi.String("string"),
	Description: pulumi.String("string"),
	TargetPolicies: cloudflare.ZeroTrustDexTestTargetPolicyArray{
		&cloudflare.ZeroTrustDexTestTargetPolicyArgs{
			Default: pulumi.Bool(false),
			Id:      pulumi.String("string"),
			Name:    pulumi.String("string"),
		},
	},
	Targeted: pulumi.Bool(false),
})
Copy
var zeroTrustDexTestResource = new ZeroTrustDexTest("zeroTrustDexTestResource", ZeroTrustDexTestArgs.builder()
    .accountId("string")
    .data(ZeroTrustDexTestDataArgs.builder()
        .host("string")
        .kind("string")
        .method("string")
        .build())
    .enabled(false)
    .interval("string")
    .name("string")
    .description("string")
    .targetPolicies(ZeroTrustDexTestTargetPolicyArgs.builder()
        .default_(false)
        .id("string")
        .name("string")
        .build())
    .targeted(false)
    .build());
Copy
zero_trust_dex_test_resource = cloudflare.ZeroTrustDexTest("zeroTrustDexTestResource",
    account_id="string",
    data={
        "host": "string",
        "kind": "string",
        "method": "string",
    },
    enabled=False,
    interval="string",
    name="string",
    description="string",
    target_policies=[{
        "default": False,
        "id": "string",
        "name": "string",
    }],
    targeted=False)
Copy
const zeroTrustDexTestResource = new cloudflare.ZeroTrustDexTest("zeroTrustDexTestResource", {
    accountId: "string",
    data: {
        host: "string",
        kind: "string",
        method: "string",
    },
    enabled: false,
    interval: "string",
    name: "string",
    description: "string",
    targetPolicies: [{
        "default": false,
        id: "string",
        name: "string",
    }],
    targeted: false,
});
Copy
type: cloudflare:ZeroTrustDexTest
properties:
    accountId: string
    data:
        host: string
        kind: string
        method: string
    description: string
    enabled: false
    interval: string
    name: string
    targetPolicies:
        - default: false
          id: string
          name: string
    targeted: false
Copy

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

AccountId This property is required. string
Data This property is required. ZeroTrustDexTestData
The configuration object which contains the details for the WARP client to conduct the test.
Enabled This property is required. bool
Determines whether or not the test is active.
Interval This property is required. string
How often the test will run.
Name This property is required. string
The name of the DEX test. Must be unique.
Description string
Additional details about the test.
TargetPolicies List<ZeroTrustDexTestTargetPolicy>
Device settings profiles targeted by this test
Targeted bool
AccountId This property is required. string
Data This property is required. ZeroTrustDexTestDataArgs
The configuration object which contains the details for the WARP client to conduct the test.
Enabled This property is required. bool
Determines whether or not the test is active.
Interval This property is required. string
How often the test will run.
Name This property is required. string
The name of the DEX test. Must be unique.
Description string
Additional details about the test.
TargetPolicies []ZeroTrustDexTestTargetPolicyArgs
Device settings profiles targeted by this test
Targeted bool
accountId This property is required. String
data This property is required. ZeroTrustDexTestData
The configuration object which contains the details for the WARP client to conduct the test.
enabled This property is required. Boolean
Determines whether or not the test is active.
interval This property is required. String
How often the test will run.
name This property is required. String
The name of the DEX test. Must be unique.
description String
Additional details about the test.
targetPolicies List<ZeroTrustDexTestTargetPolicy>
Device settings profiles targeted by this test
targeted Boolean
accountId This property is required. string
data This property is required. ZeroTrustDexTestData
The configuration object which contains the details for the WARP client to conduct the test.
enabled This property is required. boolean
Determines whether or not the test is active.
interval This property is required. string
How often the test will run.
name This property is required. string
The name of the DEX test. Must be unique.
description string
Additional details about the test.
targetPolicies ZeroTrustDexTestTargetPolicy[]
Device settings profiles targeted by this test
targeted boolean
account_id This property is required. str
data This property is required. ZeroTrustDexTestDataArgs
The configuration object which contains the details for the WARP client to conduct the test.
enabled This property is required. bool
Determines whether or not the test is active.
interval This property is required. str
How often the test will run.
name This property is required. str
The name of the DEX test. Must be unique.
description str
Additional details about the test.
target_policies Sequence[ZeroTrustDexTestTargetPolicyArgs]
Device settings profiles targeted by this test
targeted bool
accountId This property is required. String
data This property is required. Property Map
The configuration object which contains the details for the WARP client to conduct the test.
enabled This property is required. Boolean
Determines whether or not the test is active.
interval This property is required. String
How often the test will run.
name This property is required. String
The name of the DEX test. Must be unique.
description String
Additional details about the test.
targetPolicies List<Property Map>
Device settings profiles targeted by this test
targeted Boolean

Outputs

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

Id string
The provider-assigned unique ID for this managed resource.
TestId string
The unique identifier for the test.
Id string
The provider-assigned unique ID for this managed resource.
TestId string
The unique identifier for the test.
id String
The provider-assigned unique ID for this managed resource.
testId String
The unique identifier for the test.
id string
The provider-assigned unique ID for this managed resource.
testId string
The unique identifier for the test.
id str
The provider-assigned unique ID for this managed resource.
test_id str
The unique identifier for the test.
id String
The provider-assigned unique ID for this managed resource.
testId String
The unique identifier for the test.

Look up Existing ZeroTrustDexTest Resource

Get an existing ZeroTrustDexTest 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?: ZeroTrustDexTestState, opts?: CustomResourceOptions): ZeroTrustDexTest
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        account_id: Optional[str] = None,
        data: Optional[ZeroTrustDexTestDataArgs] = None,
        description: Optional[str] = None,
        enabled: Optional[bool] = None,
        interval: Optional[str] = None,
        name: Optional[str] = None,
        target_policies: Optional[Sequence[ZeroTrustDexTestTargetPolicyArgs]] = None,
        targeted: Optional[bool] = None,
        test_id: Optional[str] = None) -> ZeroTrustDexTest
func GetZeroTrustDexTest(ctx *Context, name string, id IDInput, state *ZeroTrustDexTestState, opts ...ResourceOption) (*ZeroTrustDexTest, error)
public static ZeroTrustDexTest Get(string name, Input<string> id, ZeroTrustDexTestState? state, CustomResourceOptions? opts = null)
public static ZeroTrustDexTest get(String name, Output<String> id, ZeroTrustDexTestState state, CustomResourceOptions options)
resources:  _:    type: cloudflare:ZeroTrustDexTest    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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
Data ZeroTrustDexTestData
The configuration object which contains the details for the WARP client to conduct the test.
Description string
Additional details about the test.
Enabled bool
Determines whether or not the test is active.
Interval string
How often the test will run.
Name string
The name of the DEX test. Must be unique.
TargetPolicies List<ZeroTrustDexTestTargetPolicy>
Device settings profiles targeted by this test
Targeted bool
TestId string
The unique identifier for the test.
AccountId string
Data ZeroTrustDexTestDataArgs
The configuration object which contains the details for the WARP client to conduct the test.
Description string
Additional details about the test.
Enabled bool
Determines whether or not the test is active.
Interval string
How often the test will run.
Name string
The name of the DEX test. Must be unique.
TargetPolicies []ZeroTrustDexTestTargetPolicyArgs
Device settings profiles targeted by this test
Targeted bool
TestId string
The unique identifier for the test.
accountId String
data ZeroTrustDexTestData
The configuration object which contains the details for the WARP client to conduct the test.
description String
Additional details about the test.
enabled Boolean
Determines whether or not the test is active.
interval String
How often the test will run.
name String
The name of the DEX test. Must be unique.
targetPolicies List<ZeroTrustDexTestTargetPolicy>
Device settings profiles targeted by this test
targeted Boolean
testId String
The unique identifier for the test.
accountId string
data ZeroTrustDexTestData
The configuration object which contains the details for the WARP client to conduct the test.
description string
Additional details about the test.
enabled boolean
Determines whether or not the test is active.
interval string
How often the test will run.
name string
The name of the DEX test. Must be unique.
targetPolicies ZeroTrustDexTestTargetPolicy[]
Device settings profiles targeted by this test
targeted boolean
testId string
The unique identifier for the test.
account_id str
data ZeroTrustDexTestDataArgs
The configuration object which contains the details for the WARP client to conduct the test.
description str
Additional details about the test.
enabled bool
Determines whether or not the test is active.
interval str
How often the test will run.
name str
The name of the DEX test. Must be unique.
target_policies Sequence[ZeroTrustDexTestTargetPolicyArgs]
Device settings profiles targeted by this test
targeted bool
test_id str
The unique identifier for the test.
accountId String
data Property Map
The configuration object which contains the details for the WARP client to conduct the test.
description String
Additional details about the test.
enabled Boolean
Determines whether or not the test is active.
interval String
How often the test will run.
name String
The name of the DEX test. Must be unique.
targetPolicies List<Property Map>
Device settings profiles targeted by this test
targeted Boolean
testId String
The unique identifier for the test.

Supporting Types

ZeroTrustDexTestData
, ZeroTrustDexTestDataArgs

Host string
The desired endpoint to test.
Kind string
The type of test.
Method string
The HTTP request method type.
Host string
The desired endpoint to test.
Kind string
The type of test.
Method string
The HTTP request method type.
host String
The desired endpoint to test.
kind String
The type of test.
method String
The HTTP request method type.
host string
The desired endpoint to test.
kind string
The type of test.
method string
The HTTP request method type.
host str
The desired endpoint to test.
kind str
The type of test.
method str
The HTTP request method type.
host String
The desired endpoint to test.
kind String
The type of test.
method String
The HTTP request method type.

ZeroTrustDexTestTargetPolicy
, ZeroTrustDexTestTargetPolicyArgs

Default bool
Whether the profile is the account default
Id string
The id of the device settings profile
Name string
The name of the device settings profile
Default bool
Whether the profile is the account default
Id string
The id of the device settings profile
Name string
The name of the device settings profile
default_ Boolean
Whether the profile is the account default
id String
The id of the device settings profile
name String
The name of the device settings profile
default boolean
Whether the profile is the account default
id string
The id of the device settings profile
name string
The name of the device settings profile
default bool
Whether the profile is the account default
id str
The id of the device settings profile
name str
The name of the device settings profile
default Boolean
Whether the profile is the account default
id String
The id of the device settings profile
name String
The name of the device settings profile

Import

$ pulumi import cloudflare:index/zeroTrustDexTest:ZeroTrustDexTest example '<account_id>/<dex_test_id>'
Copy

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 cloudflare Terraform Provider.