1. Packages
  2. Cloudflare Provider
  3. API Docs
  4. DeviceDexTest
Cloudflare v6.1.2 published on Monday, Apr 28, 2025 by Pulumi

cloudflare.DeviceDexTest

Explore with Pulumi AI

cloudflare logo
Cloudflare v6.1.2 published on Monday, Apr 28, 2025 by Pulumi
    Deprecated: cloudflare.index/devicedextest.DeviceDexTest has been deprecated in favor of cloudflare.index/zerotrustdextest.ZeroTrustDexTest

    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,
    });
    
    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)
    
    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
    	})
    }
    
    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,
        });
    
    });
    
    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());
    
        }
    }
    
    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
    

    Create DeviceDexTest Resource

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

    Constructor syntax

    new DeviceDexTest(name: string, args: DeviceDexTestArgs, opts?: CustomResourceOptions);
    @overload
    def DeviceDexTest(resource_name: str,
                      args: DeviceDexTestArgs,
                      opts: Optional[ResourceOptions] = None)
    
    @overload
    def DeviceDexTest(resource_name: str,
                      opts: Optional[ResourceOptions] = None,
                      account_id: Optional[str] = None,
                      data: Optional[DeviceDexTestDataArgs] = None,
                      description: Optional[str] = None,
                      enabled: Optional[bool] = None,
                      interval: Optional[str] = None,
                      name: Optional[str] = None,
                      target_policies: Optional[Sequence[DeviceDexTestTargetPolicyArgs]] = None,
                      targeted: Optional[bool] = None)
    func NewDeviceDexTest(ctx *Context, name string, args DeviceDexTestArgs, opts ...ResourceOption) (*DeviceDexTest, error)
    public DeviceDexTest(string name, DeviceDexTestArgs args, CustomResourceOptions? opts = null)
    public DeviceDexTest(String name, DeviceDexTestArgs args)
    public DeviceDexTest(String name, DeviceDexTestArgs args, CustomResourceOptions options)
    
    type: cloudflare:DeviceDexTest
    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 DeviceDexTestArgs
    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 DeviceDexTestArgs
    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 DeviceDexTestArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args DeviceDexTestArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args DeviceDexTestArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

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

    AccountId string
    Data DeviceDexTestData
    The configuration object which contains the details for the WARP client to conduct 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.
    Description string
    Additional details about the test.
    TargetPolicies List<DeviceDexTestTargetPolicy>
    Device settings profiles targeted by this test
    Targeted bool
    AccountId string
    Data DeviceDexTestDataArgs
    The configuration object which contains the details for the WARP client to conduct 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.
    Description string
    Additional details about the test.
    TargetPolicies []DeviceDexTestTargetPolicyArgs
    Device settings profiles targeted by this test
    Targeted bool
    accountId String
    data DeviceDexTestData
    The configuration object which contains the details for the WARP client to conduct 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.
    description String
    Additional details about the test.
    targetPolicies List<DeviceDexTestTargetPolicy>
    Device settings profiles targeted by this test
    targeted Boolean
    accountId string
    data DeviceDexTestData
    The configuration object which contains the details for the WARP client to conduct 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.
    description string
    Additional details about the test.
    targetPolicies DeviceDexTestTargetPolicy[]
    Device settings profiles targeted by this test
    targeted boolean
    account_id str
    data DeviceDexTestDataArgs
    The configuration object which contains the details for the WARP client to conduct 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.
    description str
    Additional details about the test.
    target_policies Sequence[DeviceDexTestTargetPolicyArgs]
    Device settings profiles targeted by this test
    targeted bool
    accountId String
    data Property Map
    The configuration object which contains the details for the WARP client to conduct 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.
    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 DeviceDexTest 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 DeviceDexTest Resource

    Get an existing DeviceDexTest 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?: DeviceDexTestState, opts?: CustomResourceOptions): DeviceDexTest
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            account_id: Optional[str] = None,
            data: Optional[DeviceDexTestDataArgs] = None,
            description: Optional[str] = None,
            enabled: Optional[bool] = None,
            interval: Optional[str] = None,
            name: Optional[str] = None,
            target_policies: Optional[Sequence[DeviceDexTestTargetPolicyArgs]] = None,
            targeted: Optional[bool] = None,
            test_id: Optional[str] = None) -> DeviceDexTest
    func GetDeviceDexTest(ctx *Context, name string, id IDInput, state *DeviceDexTestState, opts ...ResourceOption) (*DeviceDexTest, error)
    public static DeviceDexTest Get(string name, Input<string> id, DeviceDexTestState? state, CustomResourceOptions? opts = null)
    public static DeviceDexTest get(String name, Output<String> id, DeviceDexTestState state, CustomResourceOptions options)
    resources:  _:    type: cloudflare:DeviceDexTest    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
    Data DeviceDexTestData
    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<DeviceDexTestTargetPolicy>
    Device settings profiles targeted by this test
    Targeted bool
    TestId string
    The unique identifier for the test.
    AccountId string
    Data DeviceDexTestDataArgs
    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 []DeviceDexTestTargetPolicyArgs
    Device settings profiles targeted by this test
    Targeted bool
    TestId string
    The unique identifier for the test.
    accountId String
    data DeviceDexTestData
    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<DeviceDexTestTargetPolicy>
    Device settings profiles targeted by this test
    targeted Boolean
    testId String
    The unique identifier for the test.
    accountId string
    data DeviceDexTestData
    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 DeviceDexTestTargetPolicy[]
    Device settings profiles targeted by this test
    targeted boolean
    testId string
    The unique identifier for the test.
    account_id str
    data DeviceDexTestDataArgs
    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[DeviceDexTestTargetPolicyArgs]
    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

    DeviceDexTestData, DeviceDexTestDataArgs

    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.

    DeviceDexTestTargetPolicy, DeviceDexTestTargetPolicyArgs

    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/deviceDexTest:DeviceDexTest example '<account_id>/<dex_test_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 cloudflare Terraform Provider.
    cloudflare logo
    Cloudflare v6.1.2 published on Monday, Apr 28, 2025 by Pulumi