1. Packages
  2. Packages
  3. Cloudflare Provider
  4. API Docs
  5. getZeroTrustDexTests
Viewing docs for Cloudflare v6.15.0
published on Saturday, May 2, 2026 by Pulumi
cloudflare logo
Viewing docs for Cloudflare v6.15.0
published on Saturday, May 2, 2026 by Pulumi

    Accepted Permissions

    • Cloudflare DEX Read
    • Cloudflare DEX Write
    • Zero Trust Read
    • Zero Trust Report

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as cloudflare from "@pulumi/cloudflare";
    
    const exampleZeroTrustDexTests = cloudflare.getZeroTrustDexTests({
        accountId: "01a7362d577a6c3019a474fd6f485823",
        kind: "http",
        testName: "testName",
    });
    
    import pulumi
    import pulumi_cloudflare as cloudflare
    
    example_zero_trust_dex_tests = cloudflare.get_zero_trust_dex_tests(account_id="01a7362d577a6c3019a474fd6f485823",
        kind="http",
        test_name="testName")
    
    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.GetZeroTrustDexTests(ctx, &cloudflare.LookupZeroTrustDexTestsArgs{
    			AccountId: pulumi.StringRef("01a7362d577a6c3019a474fd6f485823"),
    			Kind:      pulumi.StringRef("http"),
    			TestName:  pulumi.StringRef("testName"),
    		}, 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 exampleZeroTrustDexTests = Cloudflare.Index.GetZeroTrustDexTests.Invoke(new()
        {
            AccountId = "01a7362d577a6c3019a474fd6f485823",
            Kind = "http",
            TestName = "testName",
        });
    
    });
    
    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.GetZeroTrustDexTestsArgs;
    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 exampleZeroTrustDexTests = CloudflareFunctions.getZeroTrustDexTests(GetZeroTrustDexTestsArgs.builder()
                .accountId("01a7362d577a6c3019a474fd6f485823")
                .kind("http")
                .testName("testName")
                .build());
    
        }
    }
    
    variables:
      exampleZeroTrustDexTests:
        fn::invoke:
          function: cloudflare:getZeroTrustDexTests
          arguments:
            accountId: 01a7362d577a6c3019a474fd6f485823
            kind: http
            testName: testName
    

    Using getZeroTrustDexTests

    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 getZeroTrustDexTests(args: GetZeroTrustDexTestsArgs, opts?: InvokeOptions): Promise<GetZeroTrustDexTestsResult>
    function getZeroTrustDexTestsOutput(args: GetZeroTrustDexTestsOutputArgs, opts?: InvokeOptions): Output<GetZeroTrustDexTestsResult>
    def get_zero_trust_dex_tests(account_id: Optional[str] = None,
                                 kind: Optional[str] = None,
                                 max_items: Optional[int] = None,
                                 test_name: Optional[str] = None,
                                 opts: Optional[InvokeOptions] = None) -> GetZeroTrustDexTestsResult
    def get_zero_trust_dex_tests_output(account_id: Optional[pulumi.Input[str]] = None,
                                 kind: Optional[pulumi.Input[str]] = None,
                                 max_items: Optional[pulumi.Input[int]] = None,
                                 test_name: Optional[pulumi.Input[str]] = None,
                                 opts: Optional[InvokeOptions] = None) -> Output[GetZeroTrustDexTestsResult]
    func LookupZeroTrustDexTests(ctx *Context, args *LookupZeroTrustDexTestsArgs, opts ...InvokeOption) (*LookupZeroTrustDexTestsResult, error)
    func LookupZeroTrustDexTestsOutput(ctx *Context, args *LookupZeroTrustDexTestsOutputArgs, opts ...InvokeOption) LookupZeroTrustDexTestsResultOutput

    > Note: This function is named LookupZeroTrustDexTests in the Go SDK.

    public static class GetZeroTrustDexTests 
    {
        public static Task<GetZeroTrustDexTestsResult> InvokeAsync(GetZeroTrustDexTestsArgs args, InvokeOptions? opts = null)
        public static Output<GetZeroTrustDexTestsResult> Invoke(GetZeroTrustDexTestsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetZeroTrustDexTestsResult> getZeroTrustDexTests(GetZeroTrustDexTestsArgs args, InvokeOptions options)
    public static Output<GetZeroTrustDexTestsResult> getZeroTrustDexTests(GetZeroTrustDexTestsArgs args, InvokeOptions options)
    
    fn::invoke:
      function: cloudflare:index/getZeroTrustDexTests:getZeroTrustDexTests
      arguments:
        # arguments dictionary

    The following arguments are supported:

    AccountId string
    Kind string
    Filter by test type Available values: "http", "traceroute".
    MaxItems int
    Max items to fetch, default: 1000
    TestName string
    Filter by test name
    AccountId string
    Kind string
    Filter by test type Available values: "http", "traceroute".
    MaxItems int
    Max items to fetch, default: 1000
    TestName string
    Filter by test name
    accountId String
    kind String
    Filter by test type Available values: "http", "traceroute".
    maxItems Integer
    Max items to fetch, default: 1000
    testName String
    Filter by test name
    accountId string
    kind string
    Filter by test type Available values: "http", "traceroute".
    maxItems number
    Max items to fetch, default: 1000
    testName string
    Filter by test name
    account_id str
    kind str
    Filter by test type Available values: "http", "traceroute".
    max_items int
    Max items to fetch, default: 1000
    test_name str
    Filter by test name
    accountId String
    kind String
    Filter by test type Available values: "http", "traceroute".
    maxItems Number
    Max items to fetch, default: 1000
    testName String
    Filter by test name

    getZeroTrustDexTests Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    Results List<GetZeroTrustDexTestsResult>
    The items returned by the data source
    AccountId string
    Kind string
    Filter by test type Available values: "http", "traceroute".
    MaxItems int
    Max items to fetch, default: 1000
    TestName string
    Filter by test name
    Id string
    The provider-assigned unique ID for this managed resource.
    Results []GetZeroTrustDexTestsResult
    The items returned by the data source
    AccountId string
    Kind string
    Filter by test type Available values: "http", "traceroute".
    MaxItems int
    Max items to fetch, default: 1000
    TestName string
    Filter by test name
    id String
    The provider-assigned unique ID for this managed resource.
    results List<GetZeroTrustDexTestsResult>
    The items returned by the data source
    accountId String
    kind String
    Filter by test type Available values: "http", "traceroute".
    maxItems Integer
    Max items to fetch, default: 1000
    testName String
    Filter by test name
    id string
    The provider-assigned unique ID for this managed resource.
    results GetZeroTrustDexTestsResult[]
    The items returned by the data source
    accountId string
    kind string
    Filter by test type Available values: "http", "traceroute".
    maxItems number
    Max items to fetch, default: 1000
    testName string
    Filter by test name
    id str
    The provider-assigned unique ID for this managed resource.
    results Sequence[GetZeroTrustDexTestsResult]
    The items returned by the data source
    account_id str
    kind str
    Filter by test type Available values: "http", "traceroute".
    max_items int
    Max items to fetch, default: 1000
    test_name str
    Filter by test name
    id String
    The provider-assigned unique ID for this managed resource.
    results List<Property Map>
    The items returned by the data source
    accountId String
    kind String
    Filter by test type Available values: "http", "traceroute".
    maxItems Number
    Max items to fetch, default: 1000
    testName String
    Filter by test name

    Supporting Types

    GetZeroTrustDexTestsResult

    Data GetZeroTrustDexTestsResultData
    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.
    Id string
    The unique identifier for the test.
    Interval string
    How often the test will run.
    Name string
    The name of the DEX test. Must be unique.
    TargetPolicies List<GetZeroTrustDexTestsResultTargetPolicy>
    DEX rules targeted by this test
    Targeted bool
    TestId string
    The unique identifier for the test.
    Data GetZeroTrustDexTestsResultData
    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.
    Id string
    The unique identifier for the test.
    Interval string
    How often the test will run.
    Name string
    The name of the DEX test. Must be unique.
    TargetPolicies []GetZeroTrustDexTestsResultTargetPolicy
    DEX rules targeted by this test
    Targeted bool
    TestId string
    The unique identifier for the test.
    data GetZeroTrustDexTestsResultData
    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.
    id String
    The unique identifier for the test.
    interval String
    How often the test will run.
    name String
    The name of the DEX test. Must be unique.
    targetPolicies List<GetZeroTrustDexTestsResultTargetPolicy>
    DEX rules targeted by this test
    targeted Boolean
    testId String
    The unique identifier for the test.
    data GetZeroTrustDexTestsResultData
    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.
    id string
    The unique identifier for the test.
    interval string
    How often the test will run.
    name string
    The name of the DEX test. Must be unique.
    targetPolicies GetZeroTrustDexTestsResultTargetPolicy[]
    DEX rules targeted by this test
    targeted boolean
    testId string
    The unique identifier for the test.
    data GetZeroTrustDexTestsResultData
    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.
    id str
    The unique identifier for the test.
    interval str
    How often the test will run.
    name str
    The name of the DEX test. Must be unique.
    target_policies Sequence[GetZeroTrustDexTestsResultTargetPolicy]
    DEX rules targeted by this test
    targeted bool
    test_id str
    The unique identifier for the test.
    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.
    id String
    The unique identifier for the test.
    interval String
    How often the test will run.
    name String
    The name of the DEX test. Must be unique.
    targetPolicies List<Property Map>
    DEX rules targeted by this test
    targeted Boolean
    testId String
    The unique identifier for the test.

    GetZeroTrustDexTestsResultData

    Host string
    The desired endpoint to test.
    Kind string
    The type of test. Available values: "http", "traceroute".
    Method string
    The HTTP request method type. Available values: "GET".
    Host string
    The desired endpoint to test.
    Kind string
    The type of test. Available values: "http", "traceroute".
    Method string
    The HTTP request method type. Available values: "GET".
    host String
    The desired endpoint to test.
    kind String
    The type of test. Available values: "http", "traceroute".
    method String
    The HTTP request method type. Available values: "GET".
    host string
    The desired endpoint to test.
    kind string
    The type of test. Available values: "http", "traceroute".
    method string
    The HTTP request method type. Available values: "GET".
    host str
    The desired endpoint to test.
    kind str
    The type of test. Available values: "http", "traceroute".
    method str
    The HTTP request method type. Available values: "GET".
    host String
    The desired endpoint to test.
    kind String
    The type of test. Available values: "http", "traceroute".
    method String
    The HTTP request method type. Available values: "GET".

    GetZeroTrustDexTestsResultTargetPolicy

    Default bool
    Whether the DEX rule is the account default
    Id string
    API Resource UUID tag.
    Name string
    The name of the DEX rule
    Default bool
    Whether the DEX rule is the account default
    Id string
    API Resource UUID tag.
    Name string
    The name of the DEX rule
    default_ Boolean
    Whether the DEX rule is the account default
    id String
    API Resource UUID tag.
    name String
    The name of the DEX rule
    default boolean
    Whether the DEX rule is the account default
    id string
    API Resource UUID tag.
    name string
    The name of the DEX rule
    default bool
    Whether the DEX rule is the account default
    id str
    API Resource UUID tag.
    name str
    The name of the DEX rule
    default Boolean
    Whether the DEX rule is the account default
    id String
    API Resource UUID tag.
    name String
    The name of the DEX rule

    Package Details

    Repository
    Cloudflare pulumi/pulumi-cloudflare
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the cloudflare Terraform Provider.
    cloudflare logo
    Viewing docs for Cloudflare v6.15.0
    published on Saturday, May 2, 2026 by Pulumi
      Try Pulumi Cloud free. Your team will thank you.