Skip to main content

tests

Creates, updates, deletes, gets or lists a tests resource.

Overview

Nametests
TypeResource
Idcloudflare.zero_trust.tests

Fields

The following fields are returned by SELECT queries:

success response

NameDatatypeDescription
overviewMetricsobject
testsarrayarray of test results objects.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectaccount_idcolo, testName, deviceId, registration_id, page, per_page, kindList DEX tests with overview metrics

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
account_idstringThe Cloudflare account ID.
colostringOptionally filter result stats to a Cloudflare colo. Cannot be used in combination with deviceId param.
deviceIdarrayOptionally filter result stats to a specific device(s). Cannot be used in combination with colo param.
kindstringFilter by test type
pagenumberPage number of paginated results
per_pagenumberNumber of items per page
registration_idstringOptionally filter results to a specific device registration. Must be used in combination with a single deviceId.
testNamestringOptionally filter results by test name

SELECT examples

List DEX tests with overview metrics

SELECT
overviewMetrics,
tests
FROM cloudflare.zero_trust.tests
WHERE account_id = '{{ account_id }}' -- required
AND colo = '{{ colo }}'
AND testName = '{{ testName }}'
AND deviceId = '{{ deviceId }}'
AND registration_id = '{{ registration_id }}'
AND page = '{{ page }}'
AND per_page = '{{ per_page }}'
AND kind = '{{ kind }}'
;