Provides a Cloudflare Device Dex Test resource. Device Dex Tests allow for building location-aware device settings policies.
resource "cloudflare_device_dex_test" "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"
}
}
account_id
(String) The account identifier to target for the resource. Modifying this attribute will force creation of a new resource.data
(Block List, Min: 1, Max: 1) The configuration object which contains the details for the WARP client to conduct the test. (see below for nested schema)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 Device Dex Test. Must be unique.created
(String) Timestamp of when the Dex Test was created.id
(String) The ID of this resource.updated
(String) Timestamp of when the Dex Test was last updated.data
Required:
host
(String) The host URL for http
test kind
. For traceroute
, it must be a valid hostname or IP address.kind
(String) The type of Device Dex Test. Available values: http
, traceroute
.Optional:
method
(String) The http request method. Available values: GET
.Import is supported using the following syntax:
$ terraform import cloudflare_device_dex_test.example <account_id>/<device_dex_test_id>