ZeroTrustDexTest

class ZeroTrustDexTest : KotlinCustomResource

Provides a Cloudflare Device Dex Test resource. Device Dex Tests allow for building location-aware device settings policies.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as cloudflare from "@pulumi/cloudflare";
const example = new cloudflare.ZeroTrustDexTest("example", {
accountId: "f037e56e89293a057740de681ac9abbe",
name: "GET homepage",
description: "Send a HTTP GET request to the home endpoint every half hour.",
interval: "0h30m0s",
enabled: true,
data: {
host: "https://example.com/home",
kind: "http",
method: "GET",
},
});
import pulumi
import pulumi_cloudflare as cloudflare
example = cloudflare.ZeroTrustDexTest("example",
account_id="f037e56e89293a057740de681ac9abbe",
name="GET homepage",
description="Send a HTTP GET request to the home endpoint every half hour.",
interval="0h30m0s",
enabled=True,
data={
"host": "https://example.com/home",
"kind": "http",
"method": "GET",
})
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Cloudflare = Pulumi.Cloudflare;
return await Deployment.RunAsync(() =>
{
var example = new Cloudflare.ZeroTrustDexTest("example", new()
{
AccountId = "f037e56e89293a057740de681ac9abbe",
Name = "GET homepage",
Description = "Send a HTTP GET request to the home endpoint every half hour.",
Interval = "0h30m0s",
Enabled = true,
Data = new Cloudflare.Inputs.ZeroTrustDexTestDataArgs
{
Host = "https://example.com/home",
Kind = "http",
Method = "GET",
},
});
});
package main
import (
"github.com/pulumi/pulumi-cloudflare/sdk/v5/go/cloudflare"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := cloudflare.NewZeroTrustDexTest(ctx, "example", &cloudflare.ZeroTrustDexTestArgs{
AccountId: pulumi.String("f037e56e89293a057740de681ac9abbe"),
Name: pulumi.String("GET homepage"),
Description: pulumi.String("Send a HTTP GET request to the home endpoint every half hour."),
Interval: pulumi.String("0h30m0s"),
Enabled: pulumi.Bool(true),
Data: &cloudflare.ZeroTrustDexTestDataArgs{
Host: pulumi.String("https://example.com/home"),
Kind: pulumi.String("http"),
Method: pulumi.String("GET"),
},
})
if err != nil {
return err
}
return nil
})
}
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 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 example = new ZeroTrustDexTest("example", ZeroTrustDexTestArgs.builder()
.accountId("f037e56e89293a057740de681ac9abbe")
.name("GET homepage")
.description("Send a HTTP GET request to the home endpoint every half hour.")
.interval("0h30m0s")
.enabled(true)
.data(ZeroTrustDexTestDataArgs.builder()
.host("https://example.com/home")
.kind("http")
.method("GET")
.build())
.build());
}
}
resources:
example:
type: cloudflare:ZeroTrustDexTest
properties:
accountId: f037e56e89293a057740de681ac9abbe
name: GET homepage
description: Send a HTTP GET request to the home endpoint every half hour.
interval: 0h30m0s
enabled: true
data:
host: https://example.com/home
kind: http
method: GET

Import

$ pulumi import cloudflare:index/zeroTrustDexTest:ZeroTrustDexTest example <account_id>/<device_dex_test_id>

Properties

Link copied to clipboard
val accountId: Output<String>

The account identifier to target for the resource. Modifying this attribute will force creation of a new resource.

Link copied to clipboard
val created: Output<String>

Timestamp of when the Dex Test was created.

Link copied to clipboard

The configuration object which contains the details for the WARP client to conduct the test.

Link copied to clipboard
val description: Output<String>

Additional details about the test.

Link copied to clipboard
val enabled: Output<Boolean>

Determines whether or not the test is active.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val interval: Output<String>

How often the test will run.

Link copied to clipboard
val name: Output<String>

The name of the Device Dex Test. Must be unique.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val updated: Output<String>

Timestamp of when the Dex Test was last updated.

Link copied to clipboard
val urn: Output<String>