1. Packages
  2. Cloudflare Provider
  3. API Docs
  4. ZeroTrustDexRule
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 = new cloudflare.ZeroTrustDexRule("example_zero_trust_dex_rule", {
        accountId: "01a7362d577a6c3019a474fd6f485823",
        match: "match",
        name: "name",
        description: "description",
    });
    
    import pulumi
    import pulumi_cloudflare as cloudflare
    
    example_zero_trust_dex_rule = cloudflare.ZeroTrustDexRule("example_zero_trust_dex_rule",
        account_id="01a7362d577a6c3019a474fd6f485823",
        match="match",
        name="name",
        description="description")
    
    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.NewZeroTrustDexRule(ctx, "example_zero_trust_dex_rule", &cloudflare.ZeroTrustDexRuleArgs{
    			AccountId:   pulumi.String("01a7362d577a6c3019a474fd6f485823"),
    			Match:       pulumi.String("match"),
    			Name:        pulumi.String("name"),
    			Description: pulumi.String("description"),
    		})
    		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 = new Cloudflare.ZeroTrustDexRule("example_zero_trust_dex_rule", new()
        {
            AccountId = "01a7362d577a6c3019a474fd6f485823",
            Match = "match",
            Name = "name",
            Description = "description",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.cloudflare.ZeroTrustDexRule;
    import com.pulumi.cloudflare.ZeroTrustDexRuleArgs;
    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 exampleZeroTrustDexRule = new ZeroTrustDexRule("exampleZeroTrustDexRule", ZeroTrustDexRuleArgs.builder()
                .accountId("01a7362d577a6c3019a474fd6f485823")
                .match("match")
                .name("name")
                .description("description")
                .build());
    
        }
    }
    
    resources:
      exampleZeroTrustDexRule:
        type: cloudflare:ZeroTrustDexRule
        name: example_zero_trust_dex_rule
        properties:
          accountId: 01a7362d577a6c3019a474fd6f485823
          match: match
          name: name
          description: description
    

    Create ZeroTrustDexRule Resource

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

    Constructor syntax

    new ZeroTrustDexRule(name: string, args: ZeroTrustDexRuleArgs, opts?: CustomResourceOptions);
    @overload
    def ZeroTrustDexRule(resource_name: str,
                         args: ZeroTrustDexRuleArgs,
                         opts: Optional[ResourceOptions] = None)
    
    @overload
    def ZeroTrustDexRule(resource_name: str,
                         opts: Optional[ResourceOptions] = None,
                         account_id: Optional[str] = None,
                         match: Optional[str] = None,
                         name: Optional[str] = None,
                         description: Optional[str] = None)
    func NewZeroTrustDexRule(ctx *Context, name string, args ZeroTrustDexRuleArgs, opts ...ResourceOption) (*ZeroTrustDexRule, error)
    public ZeroTrustDexRule(string name, ZeroTrustDexRuleArgs args, CustomResourceOptions? opts = null)
    public ZeroTrustDexRule(String name, ZeroTrustDexRuleArgs args)
    public ZeroTrustDexRule(String name, ZeroTrustDexRuleArgs args, CustomResourceOptions options)
    
    type: cloudflare:ZeroTrustDexRule
    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 ZeroTrustDexRuleArgs
    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 ZeroTrustDexRuleArgs
    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 ZeroTrustDexRuleArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ZeroTrustDexRuleArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ZeroTrustDexRuleArgs
    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 zeroTrustDexRuleResource = new Cloudflare.Index.ZeroTrustDexRule("zeroTrustDexRuleResource", new()
    {
        AccountId = "string",
        Match = "string",
        Name = "string",
        Description = "string",
    });
    
    example, err := cloudflare.NewZeroTrustDexRule(ctx, "zeroTrustDexRuleResource", &cloudflare.ZeroTrustDexRuleArgs{
    	AccountId:   pulumi.String("string"),
    	Match:       pulumi.String("string"),
    	Name:        pulumi.String("string"),
    	Description: pulumi.String("string"),
    })
    
    var zeroTrustDexRuleResource = new ZeroTrustDexRule("zeroTrustDexRuleResource", ZeroTrustDexRuleArgs.builder()
        .accountId("string")
        .match("string")
        .name("string")
        .description("string")
        .build());
    
    zero_trust_dex_rule_resource = cloudflare.ZeroTrustDexRule("zeroTrustDexRuleResource",
        account_id="string",
        match="string",
        name="string",
        description="string")
    
    const zeroTrustDexRuleResource = new cloudflare.ZeroTrustDexRule("zeroTrustDexRuleResource", {
        accountId: "string",
        match: "string",
        name: "string",
        description: "string",
    });
    
    type: cloudflare:ZeroTrustDexRule
    properties:
        accountId: string
        description: string
        match: string
        name: string
    

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

    AccountId string
    Match string
    The wirefilter expression to match.
    Name string
    The name of the Rule.
    Description string
    AccountId string
    Match string
    The wirefilter expression to match.
    Name string
    The name of the Rule.
    Description string
    accountId String
    match String
    The wirefilter expression to match.
    name String
    The name of the Rule.
    description String
    accountId string
    match string
    The wirefilter expression to match.
    name string
    The name of the Rule.
    description string
    account_id str
    match str
    The wirefilter expression to match.
    name str
    The name of the Rule.
    description str
    accountId String
    match String
    The wirefilter expression to match.
    name String
    The name of the Rule.
    description String

    Outputs

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

    CreatedAt string
    Id string
    The provider-assigned unique ID for this managed resource.
    TargetedTests List<ZeroTrustDexRuleTargetedTest>
    UpdatedAt string
    CreatedAt string
    Id string
    The provider-assigned unique ID for this managed resource.
    TargetedTests []ZeroTrustDexRuleTargetedTest
    UpdatedAt string
    createdAt String
    id String
    The provider-assigned unique ID for this managed resource.
    targetedTests List<ZeroTrustDexRuleTargetedTest>
    updatedAt String
    createdAt string
    id string
    The provider-assigned unique ID for this managed resource.
    targetedTests ZeroTrustDexRuleTargetedTest[]
    updatedAt string
    created_at str
    id str
    The provider-assigned unique ID for this managed resource.
    targeted_tests Sequence[ZeroTrustDexRuleTargetedTest]
    updated_at str
    createdAt String
    id String
    The provider-assigned unique ID for this managed resource.
    targetedTests List<Property Map>
    updatedAt String

    Look up Existing ZeroTrustDexRule Resource

    Get an existing ZeroTrustDexRule 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?: ZeroTrustDexRuleState, opts?: CustomResourceOptions): ZeroTrustDexRule
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            account_id: Optional[str] = None,
            created_at: Optional[str] = None,
            description: Optional[str] = None,
            match: Optional[str] = None,
            name: Optional[str] = None,
            targeted_tests: Optional[Sequence[ZeroTrustDexRuleTargetedTestArgs]] = None,
            updated_at: Optional[str] = None) -> ZeroTrustDexRule
    func GetZeroTrustDexRule(ctx *Context, name string, id IDInput, state *ZeroTrustDexRuleState, opts ...ResourceOption) (*ZeroTrustDexRule, error)
    public static ZeroTrustDexRule Get(string name, Input<string> id, ZeroTrustDexRuleState? state, CustomResourceOptions? opts = null)
    public static ZeroTrustDexRule get(String name, Output<String> id, ZeroTrustDexRuleState state, CustomResourceOptions options)
    resources:  _:    type: cloudflare:ZeroTrustDexRule    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
    CreatedAt string
    Description string
    Match string
    The wirefilter expression to match.
    Name string
    The name of the Rule.
    TargetedTests List<ZeroTrustDexRuleTargetedTest>
    UpdatedAt string
    AccountId string
    CreatedAt string
    Description string
    Match string
    The wirefilter expression to match.
    Name string
    The name of the Rule.
    TargetedTests []ZeroTrustDexRuleTargetedTestArgs
    UpdatedAt string
    accountId String
    createdAt String
    description String
    match String
    The wirefilter expression to match.
    name String
    The name of the Rule.
    targetedTests List<ZeroTrustDexRuleTargetedTest>
    updatedAt String
    accountId string
    createdAt string
    description string
    match string
    The wirefilter expression to match.
    name string
    The name of the Rule.
    targetedTests ZeroTrustDexRuleTargetedTest[]
    updatedAt string
    account_id str
    created_at str
    description str
    match str
    The wirefilter expression to match.
    name str
    The name of the Rule.
    targeted_tests Sequence[ZeroTrustDexRuleTargetedTestArgs]
    updated_at str
    accountId String
    createdAt String
    description String
    match String
    The wirefilter expression to match.
    name String
    The name of the Rule.
    targetedTests List<Property Map>
    updatedAt String

    Supporting Types

    ZeroTrustDexRuleTargetedTest, ZeroTrustDexRuleTargetedTestArgs

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

    ZeroTrustDexRuleTargetedTestData, ZeroTrustDexRuleTargetedTestDataArgs

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

    Import

    $ pulumi import cloudflare:index/zeroTrustDexRule:ZeroTrustDexRule example '<account_id>/<rule_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
    Viewing docs for Cloudflare v6.14.0
    published on Thursday, Apr 2, 2026 by Pulumi
      Try Pulumi Cloud free. Your team will thank you.