1. Packages
  2. Cloudflare Provider
  3. API Docs
  4. getZeroTrustDexRules
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 exampleZeroTrustDexRules = cloudflare.getZeroTrustDexRules({
        accountId: "01a7362d577a6c3019a474fd6f485823",
        name: "name",
    });
    
    import pulumi
    import pulumi_cloudflare as cloudflare
    
    example_zero_trust_dex_rules = cloudflare.get_zero_trust_dex_rules(account_id="01a7362d577a6c3019a474fd6f485823",
        name="name")
    
    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.LookupZeroTrustDexRules(ctx, &cloudflare.LookupZeroTrustDexRulesArgs{
    			AccountId: "01a7362d577a6c3019a474fd6f485823",
    			Name:      pulumi.StringRef("name"),
    		}, 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 exampleZeroTrustDexRules = Cloudflare.GetZeroTrustDexRules.Invoke(new()
        {
            AccountId = "01a7362d577a6c3019a474fd6f485823",
            Name = "name",
        });
    
    });
    
    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.GetZeroTrustDexRulesArgs;
    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 exampleZeroTrustDexRules = CloudflareFunctions.getZeroTrustDexRules(GetZeroTrustDexRulesArgs.builder()
                .accountId("01a7362d577a6c3019a474fd6f485823")
                .name("name")
                .build());
    
        }
    }
    
    variables:
      exampleZeroTrustDexRules:
        fn::invoke:
          function: cloudflare:getZeroTrustDexRules
          arguments:
            accountId: 01a7362d577a6c3019a474fd6f485823
            name: name
    

    Using getZeroTrustDexRules

    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 getZeroTrustDexRules(args: GetZeroTrustDexRulesArgs, opts?: InvokeOptions): Promise<GetZeroTrustDexRulesResult>
    function getZeroTrustDexRulesOutput(args: GetZeroTrustDexRulesOutputArgs, opts?: InvokeOptions): Output<GetZeroTrustDexRulesResult>
    def get_zero_trust_dex_rules(account_id: Optional[str] = None,
                                 max_items: Optional[int] = None,
                                 name: Optional[str] = None,
                                 sort_by: Optional[str] = None,
                                 sort_order: Optional[str] = None,
                                 opts: Optional[InvokeOptions] = None) -> GetZeroTrustDexRulesResult
    def get_zero_trust_dex_rules_output(account_id: Optional[pulumi.Input[str]] = None,
                                 max_items: Optional[pulumi.Input[int]] = None,
                                 name: Optional[pulumi.Input[str]] = None,
                                 sort_by: Optional[pulumi.Input[str]] = None,
                                 sort_order: Optional[pulumi.Input[str]] = None,
                                 opts: Optional[InvokeOptions] = None) -> Output[GetZeroTrustDexRulesResult]
    func LookupZeroTrustDexRules(ctx *Context, args *LookupZeroTrustDexRulesArgs, opts ...InvokeOption) (*LookupZeroTrustDexRulesResult, error)
    func LookupZeroTrustDexRulesOutput(ctx *Context, args *LookupZeroTrustDexRulesOutputArgs, opts ...InvokeOption) LookupZeroTrustDexRulesResultOutput

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

    public static class GetZeroTrustDexRules 
    {
        public static Task<GetZeroTrustDexRulesResult> InvokeAsync(GetZeroTrustDexRulesArgs args, InvokeOptions? opts = null)
        public static Output<GetZeroTrustDexRulesResult> Invoke(GetZeroTrustDexRulesInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetZeroTrustDexRulesResult> getZeroTrustDexRules(GetZeroTrustDexRulesArgs args, InvokeOptions options)
    public static Output<GetZeroTrustDexRulesResult> getZeroTrustDexRules(GetZeroTrustDexRulesArgs args, InvokeOptions options)
    
    fn::invoke:
      function: cloudflare:index/getZeroTrustDexRules:getZeroTrustDexRules
      arguments:
        # arguments dictionary

    The following arguments are supported:

    AccountId string
    MaxItems int
    Max items to fetch, default: 1000
    Name string
    Filter results by rule name
    SortBy string
    Which property to sort results by Available values: "name", "createdat", "updatedat".
    SortOrder string
    Sort direction for sortBy property Available values: "ASC", "DESC".
    AccountId string
    MaxItems int
    Max items to fetch, default: 1000
    Name string
    Filter results by rule name
    SortBy string
    Which property to sort results by Available values: "name", "createdat", "updatedat".
    SortOrder string
    Sort direction for sortBy property Available values: "ASC", "DESC".
    accountId String
    maxItems Integer
    Max items to fetch, default: 1000
    name String
    Filter results by rule name
    sortBy String
    Which property to sort results by Available values: "name", "createdat", "updatedat".
    sortOrder String
    Sort direction for sortBy property Available values: "ASC", "DESC".
    accountId string
    maxItems number
    Max items to fetch, default: 1000
    name string
    Filter results by rule name
    sortBy string
    Which property to sort results by Available values: "name", "createdat", "updatedat".
    sortOrder string
    Sort direction for sortBy property Available values: "ASC", "DESC".
    account_id str
    max_items int
    Max items to fetch, default: 1000
    name str
    Filter results by rule name
    sort_by str
    Which property to sort results by Available values: "name", "createdat", "updatedat".
    sort_order str
    Sort direction for sortBy property Available values: "ASC", "DESC".
    accountId String
    maxItems Number
    Max items to fetch, default: 1000
    name String
    Filter results by rule name
    sortBy String
    Which property to sort results by Available values: "name", "createdat", "updatedat".
    sortOrder String
    Sort direction for sortBy property Available values: "ASC", "DESC".

    getZeroTrustDexRules Result

    The following output properties are available:

    AccountId string
    Id string
    The provider-assigned unique ID for this managed resource.
    Results List<GetZeroTrustDexRulesResult>
    The items returned by the data source
    SortBy string
    Which property to sort results by Available values: "name", "createdat", "updatedat".
    SortOrder string
    Sort direction for sortBy property Available values: "ASC", "DESC".
    MaxItems int
    Max items to fetch, default: 1000
    Name string
    Filter results by rule name
    AccountId string
    Id string
    The provider-assigned unique ID for this managed resource.
    Results []GetZeroTrustDexRulesResult
    The items returned by the data source
    SortBy string
    Which property to sort results by Available values: "name", "createdat", "updatedat".
    SortOrder string
    Sort direction for sortBy property Available values: "ASC", "DESC".
    MaxItems int
    Max items to fetch, default: 1000
    Name string
    Filter results by rule name
    accountId String
    id String
    The provider-assigned unique ID for this managed resource.
    results List<GetZeroTrustDexRulesResult>
    The items returned by the data source
    sortBy String
    Which property to sort results by Available values: "name", "createdat", "updatedat".
    sortOrder String
    Sort direction for sortBy property Available values: "ASC", "DESC".
    maxItems Integer
    Max items to fetch, default: 1000
    name String
    Filter results by rule name
    accountId string
    id string
    The provider-assigned unique ID for this managed resource.
    results GetZeroTrustDexRulesResult[]
    The items returned by the data source
    sortBy string
    Which property to sort results by Available values: "name", "createdat", "updatedat".
    sortOrder string
    Sort direction for sortBy property Available values: "ASC", "DESC".
    maxItems number
    Max items to fetch, default: 1000
    name string
    Filter results by rule name
    account_id str
    id str
    The provider-assigned unique ID for this managed resource.
    results Sequence[GetZeroTrustDexRulesResult]
    The items returned by the data source
    sort_by str
    Which property to sort results by Available values: "name", "createdat", "updatedat".
    sort_order str
    Sort direction for sortBy property Available values: "ASC", "DESC".
    max_items int
    Max items to fetch, default: 1000
    name str
    Filter results by rule name
    accountId String
    id String
    The provider-assigned unique ID for this managed resource.
    results List<Property Map>
    The items returned by the data source
    sortBy String
    Which property to sort results by Available values: "name", "createdat", "updatedat".
    sortOrder String
    Sort direction for sortBy property Available values: "ASC", "DESC".
    maxItems Number
    Max items to fetch, default: 1000
    name String
    Filter results by rule name

    Supporting Types

    GetZeroTrustDexRulesResult

    GetZeroTrustDexRulesResultRule

    CreatedAt string
    Description string
    Id string
    API Resource UUID tag.
    Match string
    Name string
    TargetedTests []GetZeroTrustDexRulesResultRuleTargetedTest
    UpdatedAt string
    createdAt string
    description string
    id string
    API Resource UUID tag.
    match string
    name string
    targetedTests GetZeroTrustDexRulesResultRuleTargetedTest[]
    updatedAt string
    createdAt String
    description String
    id String
    API Resource UUID tag.
    match String
    name String
    targetedTests List<Property Map>
    updatedAt String

    GetZeroTrustDexRulesResultRuleTargetedTest

    Data GetZeroTrustDexRulesResultRuleTargetedTestData
    The configuration object which contains the details for the WARP client to conduct the test.
    Enabled bool
    Name string
    TestId string
    Data GetZeroTrustDexRulesResultRuleTargetedTestData
    The configuration object which contains the details for the WARP client to conduct the test.
    Enabled bool
    Name string
    TestId string
    data GetZeroTrustDexRulesResultRuleTargetedTestData
    The configuration object which contains the details for the WARP client to conduct the test.
    enabled Boolean
    name String
    testId String
    data GetZeroTrustDexRulesResultRuleTargetedTestData
    The configuration object which contains the details for the WARP client to conduct the test.
    enabled boolean
    name string
    testId string
    data GetZeroTrustDexRulesResultRuleTargetedTestData
    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

    GetZeroTrustDexRulesResultRuleTargetedTestData

    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.