1. Packages
  2. Cloudflare Provider
  3. API Docs
  4. getZeroTrustDexRule
Viewing docs for Cloudflare v6.14.0
published on Thursday, Apr 2, 2026 by Pulumi
cloudflare logo
Viewing docs for Cloudflare v6.14.0
published on Thursday, Apr 2, 2026 by Pulumi

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as cloudflare from "@pulumi/cloudflare";
    
    const exampleZeroTrustDexRule = cloudflare.getZeroTrustDexRule({
        accountId: "01a7362d577a6c3019a474fd6f485823",
        ruleId: "f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
    });
    
    import pulumi
    import pulumi_cloudflare as cloudflare
    
    example_zero_trust_dex_rule = cloudflare.get_zero_trust_dex_rule(account_id="01a7362d577a6c3019a474fd6f485823",
        rule_id="f174e90a-fafe-4643-bbbc-4a0ed4fc8415")
    
    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.LookupZeroTrustDexRule(ctx, &cloudflare.LookupZeroTrustDexRuleArgs{
    			AccountId: "01a7362d577a6c3019a474fd6f485823",
    			RuleId:    "f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
    		}, 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 exampleZeroTrustDexRule = Cloudflare.GetZeroTrustDexRule.Invoke(new()
        {
            AccountId = "01a7362d577a6c3019a474fd6f485823",
            RuleId = "f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
        });
    
    });
    
    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.GetZeroTrustDexRuleArgs;
    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 exampleZeroTrustDexRule = CloudflareFunctions.getZeroTrustDexRule(GetZeroTrustDexRuleArgs.builder()
                .accountId("01a7362d577a6c3019a474fd6f485823")
                .ruleId("f174e90a-fafe-4643-bbbc-4a0ed4fc8415")
                .build());
    
        }
    }
    
    variables:
      exampleZeroTrustDexRule:
        fn::invoke:
          function: cloudflare:getZeroTrustDexRule
          arguments:
            accountId: 01a7362d577a6c3019a474fd6f485823
            ruleId: f174e90a-fafe-4643-bbbc-4a0ed4fc8415
    

    Using getZeroTrustDexRule

    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 getZeroTrustDexRule(args: GetZeroTrustDexRuleArgs, opts?: InvokeOptions): Promise<GetZeroTrustDexRuleResult>
    function getZeroTrustDexRuleOutput(args: GetZeroTrustDexRuleOutputArgs, opts?: InvokeOptions): Output<GetZeroTrustDexRuleResult>
    def get_zero_trust_dex_rule(account_id: Optional[str] = None,
                                rule_id: Optional[str] = None,
                                opts: Optional[InvokeOptions] = None) -> GetZeroTrustDexRuleResult
    def get_zero_trust_dex_rule_output(account_id: Optional[pulumi.Input[str]] = None,
                                rule_id: Optional[pulumi.Input[str]] = None,
                                opts: Optional[InvokeOptions] = None) -> Output[GetZeroTrustDexRuleResult]
    func LookupZeroTrustDexRule(ctx *Context, args *LookupZeroTrustDexRuleArgs, opts ...InvokeOption) (*LookupZeroTrustDexRuleResult, error)
    func LookupZeroTrustDexRuleOutput(ctx *Context, args *LookupZeroTrustDexRuleOutputArgs, opts ...InvokeOption) LookupZeroTrustDexRuleResultOutput

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

    public static class GetZeroTrustDexRule 
    {
        public static Task<GetZeroTrustDexRuleResult> InvokeAsync(GetZeroTrustDexRuleArgs args, InvokeOptions? opts = null)
        public static Output<GetZeroTrustDexRuleResult> Invoke(GetZeroTrustDexRuleInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetZeroTrustDexRuleResult> getZeroTrustDexRule(GetZeroTrustDexRuleArgs args, InvokeOptions options)
    public static Output<GetZeroTrustDexRuleResult> getZeroTrustDexRule(GetZeroTrustDexRuleArgs args, InvokeOptions options)
    
    fn::invoke:
      function: cloudflare:index/getZeroTrustDexRule:getZeroTrustDexRule
      arguments:
        # arguments dictionary

    The following arguments are supported:

    AccountId string
    RuleId string
    API Resource UUID tag.
    AccountId string
    RuleId string
    API Resource UUID tag.
    accountId String
    ruleId String
    API Resource UUID tag.
    accountId string
    ruleId string
    API Resource UUID tag.
    account_id str
    rule_id str
    API Resource UUID tag.
    accountId String
    ruleId String
    API Resource UUID tag.

    getZeroTrustDexRule Result

    The following output properties are available:

    AccountId string
    CreatedAt string
    Description string
    Id string
    API Resource UUID tag.
    Match string
    Name string
    RuleId string
    API Resource UUID tag.
    TargetedTests List<GetZeroTrustDexRuleTargetedTest>
    UpdatedAt string
    AccountId string
    CreatedAt string
    Description string
    Id string
    API Resource UUID tag.
    Match string
    Name string
    RuleId string
    API Resource UUID tag.
    TargetedTests []GetZeroTrustDexRuleTargetedTest
    UpdatedAt string
    accountId String
    createdAt String
    description String
    id String
    API Resource UUID tag.
    match String
    name String
    ruleId String
    API Resource UUID tag.
    targetedTests List<GetZeroTrustDexRuleTargetedTest>
    updatedAt String
    accountId string
    createdAt string
    description string
    id string
    API Resource UUID tag.
    match string
    name string
    ruleId string
    API Resource UUID tag.
    targetedTests GetZeroTrustDexRuleTargetedTest[]
    updatedAt string
    account_id str
    created_at str
    description str
    id str
    API Resource UUID tag.
    match str
    name str
    rule_id str
    API Resource UUID tag.
    targeted_tests Sequence[GetZeroTrustDexRuleTargetedTest]
    updated_at str
    accountId String
    createdAt String
    description String
    id String
    API Resource UUID tag.
    match String
    name String
    ruleId String
    API Resource UUID tag.
    targetedTests List<Property Map>
    updatedAt String

    Supporting Types

    GetZeroTrustDexRuleTargetedTest

    Data GetZeroTrustDexRuleTargetedTestData
    The configuration object which contains the details for the WARP client to conduct the test.
    Enabled bool
    Name string
    TestId string
    Data GetZeroTrustDexRuleTargetedTestData
    The configuration object which contains the details for the WARP client to conduct the test.
    Enabled bool
    Name string
    TestId string
    data GetZeroTrustDexRuleTargetedTestData
    The configuration object which contains the details for the WARP client to conduct the test.
    enabled Boolean
    name String
    testId String
    data GetZeroTrustDexRuleTargetedTestData
    The configuration object which contains the details for the WARP client to conduct the test.
    enabled boolean
    name string
    testId string
    data GetZeroTrustDexRuleTargetedTestData
    The configuration object which contains the details for the WARP client to conduct the test.
    enabled bool
    name str
    test_id str
    data Property Map
    The configuration object which contains the details for the WARP client to conduct the test.
    enabled Boolean
    name String
    testId String

    GetZeroTrustDexRuleTargetedTestData

    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".

    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.14.0
    published on Thursday, Apr 2, 2026 by Pulumi
      Try Pulumi Cloud free. Your team will thank you.