Skip to main content

fleet_status

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

Overview

Namefleet_status
TypeResource
Idcloudflare.zero_trust.fleet_status

Fields

The following fields are returned by SELECT queries:

Get the live status of a latest device

NameDatatypeDescription
alwaysOnboolean
batteryChargingboolean
batteryCyclesinteger (int64)
batteryPctnumber (float)
colostringCloudflare colo (example: SJC)
connectionTypestring
cpuPctnumber (float)
cpuPctByApparray
deviceIdstringDevice identifier (UUID v4)
deviceIpv4object
deviceIpv6object
deviceNamestringDevice identifier (human readable)
diskReadBpsinteger (int64)
diskUsagePctnumber (float)
diskWriteBpsinteger (int64)
dohSubdomainstring
estimatedLossPctnumber (float)
firewallEnabledboolean
gatewayIpv4object
gatewayIpv6object
handshakeLatencyMsnumber (int64)
ispIpv4object
ispIpv6object
metalstring
modestringThe mode under which the WARP client is run (example: proxy)
networkRcvdBpsinteger (int64)
networkSentBpsinteger (int64)
networkSsidstring
personEmailstringUser contact email address
platformstringOperating system (example: windows)
ramAvailableKbinteger (int64)
ramUsedPctnumber (float)
ramUsedPctByApparray
registrationIdstringDevice registration identifier (UUID v4). On multi-user devices, this uniquely identifies a user's registration on the device.
statusstringNetwork status (example: connected)
switchLockedboolean
timestampstringTimestamp in ISO format (example: 2023-10-11T00:00:00Z)
versionstringWARP client version (example: 1.0.0)
wifiStrengthDbminteger (int64)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectaccount_id, device_idsince_minutes, time_now, coloGet the live status of a latest device given device_id from the device_state table

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.
device_idstringUnique identifier for device
colostringList of data centers to filter results
since_minutesnumberNumber of minutes before current time
time_nowstringNumber of minutes before current time

SELECT examples

Get the live status of a latest device given device_id from the device_state table

SELECT
alwaysOn,
batteryCharging,
batteryCycles,
batteryPct,
colo,
connectionType,
cpuPct,
cpuPctByApp,
deviceId,
deviceIpv4,
deviceIpv6,
deviceName,
diskReadBps,
diskUsagePct,
diskWriteBps,
dohSubdomain,
estimatedLossPct,
firewallEnabled,
gatewayIpv4,
gatewayIpv6,
handshakeLatencyMs,
ispIpv4,
ispIpv6,
metal,
mode,
networkRcvdBps,
networkSentBps,
networkSsid,
personEmail,
platform,
ramAvailableKb,
ramUsedPct,
ramUsedPctByApp,
registrationId,
status,
switchLocked,
timestamp,
version,
wifiStrengthDbm
FROM cloudflare.zero_trust.fleet_status
WHERE account_id = '{{ account_id }}' -- required
AND device_id = '{{ device_id }}' -- required
AND since_minutes = '{{ since_minutes }}'
AND time_now = '{{ time_now }}'
AND colo = '{{ colo }}'
;