Skip to main content

commands_devices

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

Overview

Namecommands_devices
TypeResource
Idcloudflare.zero_trust.commands_devices

Fields

The following fields are returned by SELECT queries:

List of eligible devices

NameDatatypeDescription
deviceIdstringDevice identifier (UUID v4)
deviceNamestringDevice identifier (human readable)
eligiblebooleanWhether the device is eligible for remote captures
ineligibleReasonstringIf the device is not eligible, the reason why.
personEmailstringUser contact email address
platformstringOperating system (example: windows)
registrationIdstringDevice registration identifier (UUID v4). On multi-user devices, this uniquely identifies a user's registration on the device.
statusstringNetwork status (example: connected)
timestampstringTimestamp in ISO format (example: 2023-10-11T00:00:00Z)
versionstringWARP client version (example: 1.0.0)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectaccount_idpage, per_page, searchList devices with WARP client support for remote captures which have been connected in the last 1 hour.

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.
pagenumberPage number of paginated results
per_pagenumberNumber of items per page

SELECT examples

List devices with WARP client support for remote captures which have been connected in the last 1 hour.

SELECT
deviceId,
deviceName,
eligible,
ineligibleReason,
personEmail,
platform,
registrationId,
status,
timestamp,
version
FROM cloudflare.zero_trust.commands_devices
WHERE account_id = '{{ account_id }}' -- required
AND page = '{{ page }}'
AND per_page = '{{ per_page }}'
AND search = '{{ search }}'
;