cloudflare.ZeroTrustDexTest
Explore with Pulumi AI
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 ZeroTrustDexTest Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ZeroTrustDexTest(name: string, args: ZeroTrustDexTestArgs, opts?: CustomResourceOptions);
@overload
def ZeroTrustDexTest(resource_name: str,
args: ZeroTrustDexTestArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ZeroTrustDexTest(resource_name: str,
opts: Optional[ResourceOptions] = None,
account_id: Optional[str] = None,
data: Optional[ZeroTrustDexTestDataArgs] = None,
enabled: Optional[bool] = None,
interval: Optional[str] = None,
name: Optional[str] = None,
description: Optional[str] = None,
target_policies: Optional[Sequence[ZeroTrustDexTestTargetPolicyArgs]] = None,
targeted: Optional[bool] = None)
func NewZeroTrustDexTest(ctx *Context, name string, args ZeroTrustDexTestArgs, opts ...ResourceOption) (*ZeroTrustDexTest, error)
public ZeroTrustDexTest(string name, ZeroTrustDexTestArgs args, CustomResourceOptions? opts = null)
public ZeroTrustDexTest(String name, ZeroTrustDexTestArgs args)
public ZeroTrustDexTest(String name, ZeroTrustDexTestArgs args, CustomResourceOptions options)
type: cloudflare:ZeroTrustDexTest
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 ZeroTrustDexTestArgs
- 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 ZeroTrustDexTestArgs
- 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 ZeroTrustDexTestArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ZeroTrustDexTestArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ZeroTrustDexTestArgs
- 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 zeroTrustDexTestResource = new Cloudflare.ZeroTrustDexTest("zeroTrustDexTestResource", new()
{
AccountId = "string",
Data = new Cloudflare.Inputs.ZeroTrustDexTestDataArgs
{
Host = "string",
Kind = "string",
Method = "string",
},
Enabled = false,
Interval = "string",
Name = "string",
Description = "string",
TargetPolicies = new[]
{
new Cloudflare.Inputs.ZeroTrustDexTestTargetPolicyArgs
{
Default = false,
Id = "string",
Name = "string",
},
},
Targeted = false,
});
example, err := cloudflare.NewZeroTrustDexTest(ctx, "zeroTrustDexTestResource", &cloudflare.ZeroTrustDexTestArgs{
AccountId: pulumi.String("string"),
Data: &cloudflare.ZeroTrustDexTestDataArgs{
Host: pulumi.String("string"),
Kind: pulumi.String("string"),
Method: pulumi.String("string"),
},
Enabled: pulumi.Bool(false),
Interval: pulumi.String("string"),
Name: pulumi.String("string"),
Description: pulumi.String("string"),
TargetPolicies: cloudflare.ZeroTrustDexTestTargetPolicyArray{
&cloudflare.ZeroTrustDexTestTargetPolicyArgs{
Default: pulumi.Bool(false),
Id: pulumi.String("string"),
Name: pulumi.String("string"),
},
},
Targeted: pulumi.Bool(false),
})
var zeroTrustDexTestResource = new ZeroTrustDexTest("zeroTrustDexTestResource", ZeroTrustDexTestArgs.builder()
.accountId("string")
.data(ZeroTrustDexTestDataArgs.builder()
.host("string")
.kind("string")
.method("string")
.build())
.enabled(false)
.interval("string")
.name("string")
.description("string")
.targetPolicies(ZeroTrustDexTestTargetPolicyArgs.builder()
.default_(false)
.id("string")
.name("string")
.build())
.targeted(false)
.build());
zero_trust_dex_test_resource = cloudflare.ZeroTrustDexTest("zeroTrustDexTestResource",
account_id="string",
data={
"host": "string",
"kind": "string",
"method": "string",
},
enabled=False,
interval="string",
name="string",
description="string",
target_policies=[{
"default": False,
"id": "string",
"name": "string",
}],
targeted=False)
const zeroTrustDexTestResource = new cloudflare.ZeroTrustDexTest("zeroTrustDexTestResource", {
accountId: "string",
data: {
host: "string",
kind: "string",
method: "string",
},
enabled: false,
interval: "string",
name: "string",
description: "string",
targetPolicies: [{
"default": false,
id: "string",
name: "string",
}],
targeted: false,
});
type: cloudflare:ZeroTrustDexTest
properties:
accountId: string
data:
host: string
kind: string
method: string
description: string
enabled: false
interval: string
name: string
targetPolicies:
- default: false
id: string
name: string
targeted: false
ZeroTrustDexTest 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 ZeroTrustDexTest resource accepts the following input properties:
- Account
Id string - Data
Zero
Trust Dex Test Data - 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.
- Target
Policies List<ZeroTrust Dex Test Target Policy> - Device settings profiles targeted by this test
- Targeted bool
- Account
Id string - Data
Zero
Trust Dex Test Data Args - 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.
- Target
Policies []ZeroTrust Dex Test Target Policy Args - Device settings profiles targeted by this test
- Targeted bool
- account
Id String - data
Zero
Trust Dex Test Data - 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.
- target
Policies List<ZeroTrust Dex Test Target Policy> - Device settings profiles targeted by this test
- targeted Boolean
- account
Id string - data
Zero
Trust Dex Test Data - 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.
- target
Policies ZeroTrust Dex Test Target Policy[] - Device settings profiles targeted by this test
- targeted boolean
- account_
id str - data
Zero
Trust Dex Test Data Args - 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[ZeroTrust Dex Test Target Policy Args] - Device settings profiles targeted by this test
- targeted bool
- account
Id 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.
- target
Policies List<Property Map> - Device settings profiles targeted by this test
- targeted Boolean
Outputs
All input properties are implicitly available as output properties. Additionally, the ZeroTrustDexTest resource produces the following output properties:
Look up Existing ZeroTrustDexTest Resource
Get an existing ZeroTrustDexTest 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?: ZeroTrustDexTestState, opts?: CustomResourceOptions): ZeroTrustDexTest
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
account_id: Optional[str] = None,
data: Optional[ZeroTrustDexTestDataArgs] = None,
description: Optional[str] = None,
enabled: Optional[bool] = None,
interval: Optional[str] = None,
name: Optional[str] = None,
target_policies: Optional[Sequence[ZeroTrustDexTestTargetPolicyArgs]] = None,
targeted: Optional[bool] = None,
test_id: Optional[str] = None) -> ZeroTrustDexTest
func GetZeroTrustDexTest(ctx *Context, name string, id IDInput, state *ZeroTrustDexTestState, opts ...ResourceOption) (*ZeroTrustDexTest, error)
public static ZeroTrustDexTest Get(string name, Input<string> id, ZeroTrustDexTestState? state, CustomResourceOptions? opts = null)
public static ZeroTrustDexTest get(String name, Output<String> id, ZeroTrustDexTestState state, CustomResourceOptions options)
resources: _: type: cloudflare:ZeroTrustDexTest 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.
- Account
Id string - Data
Zero
Trust Dex Test Data - 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.
- Target
Policies List<ZeroTrust Dex Test Target Policy> - Device settings profiles targeted by this test
- Targeted bool
- Test
Id string - The unique identifier for the test.
- Account
Id string - Data
Zero
Trust Dex Test Data Args - 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.
- Target
Policies []ZeroTrust Dex Test Target Policy Args - Device settings profiles targeted by this test
- Targeted bool
- Test
Id string - The unique identifier for the test.
- account
Id String - data
Zero
Trust Dex Test Data - 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.
- target
Policies List<ZeroTrust Dex Test Target Policy> - Device settings profiles targeted by this test
- targeted Boolean
- test
Id String - The unique identifier for the test.
- account
Id string - data
Zero
Trust Dex Test Data - 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.
- target
Policies ZeroTrust Dex Test Target Policy[] - Device settings profiles targeted by this test
- targeted boolean
- test
Id string - The unique identifier for the test.
- account_
id str - data
Zero
Trust Dex Test Data Args - 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[ZeroTrust Dex Test Target Policy Args] - Device settings profiles targeted by this test
- targeted bool
- test_
id str - The unique identifier for the test.
- account
Id 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.
- target
Policies List<Property Map> - Device settings profiles targeted by this test
- targeted Boolean
- test
Id String - The unique identifier for the test.
Supporting Types
ZeroTrustDexTestData, ZeroTrustDexTestDataArgs
ZeroTrustDexTestTargetPolicy, ZeroTrustDexTestTargetPolicyArgs
Import
$ pulumi import cloudflare:index/zeroTrustDexTest:ZeroTrustDexTest 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.