Skip to content

DeviceDexTest

Source: src/Cloudflare/Devices/DexTest.ts

A Cloudflare Zero Trust DEX synthetic test — an HTTP or traceroute probe that enrolled WARP devices run on a schedule so the Digital Experience Monitoring dashboard can chart reachability and latency to your critical applications.

Requires the DEX entitlement on the account (the API rejects writes with Forbidden / dex.api.entitlements.missing otherwise).

HTTP probe every 30 minutes

const test = yield* Cloudflare.DeviceDexTest("AppHealth", {
data: { host: "https://app.example.com/health", kind: "http", method: "GET" },
interval: "0h30m0s",
description: "Internal app reachability",
});

Traceroute probe targeting specific device profiles

const trace = yield* Cloudflare.DeviceDexTest("OriginTrace", {
data: { host: "203.0.113.10", kind: "traceroute" },
interval: "0h30m0s",
targeted: true,
targetPolicies: [{ id: profile.policyId }],
});