Skip to main content

unique_devices

Creates, updates, deletes, gets or lists an unique_devices resource.

Overview​

Nameunique_devices
TypeResource
Idcloudflare.zero_trust.unique_devices

Fields​

The following fields are returned by SELECT queries:

DEX unique devices targeted response

NameDatatypeDescription
uniqueDevicesTotalintegertotal number of unique devices

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectaccount_idtestName, deviceIdReturns unique count of devices that have run synthetic application monitoring tests in the past 7 days.

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.
deviceIdarrayOptionally filter result stats to a specific device(s). Cannot be used in combination with colo param.
testNamestringOptionally filter results by test name

SELECT examples​

Returns unique count of devices that have run synthetic application monitoring tests in the past 7 days.

SELECT
uniqueDevicesTotal
FROM cloudflare.zero_trust.unique_devices
WHERE account_id = '{{ account_id }}' -- required
AND testName = '{{ testName }}'
AND deviceId = '{{ deviceId }}'
;