Skip to main content

warp_change_events

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

Overview

Namewarp_change_events
TypeResource
Idcloudflare.zero_trust.warp_change_events

Fields

The following fields are returned by SELECT queries:

success response

NameDatatypeDescription
device_idstringAPI Resource UUID tag. (example: f174e90a-fafe-4643-bbbc-4a0ed4fc8415)
registration_idstringAPI Resource UUID tag. (example: f174e90a-fafe-4643-bbbc-4a0ed4fc8415)
account_namestringThe account name.
account_tagstringThe public account identifier.
device_registrationstringAPI Resource UUID tag. (example: f174e90a-fafe-4643-bbbc-4a0ed4fc8415)
fromobject
hostnamestringThe hostname of the machine the event is from
serial_numberstringThe serial number of the machine the event is from
timestampstringTimestamp in ISO format (example: 2023-10-11T00:00:00Z)
toobject
togglestringThe state of the WARP toggle. (on, off)
user_emailstringEmail tied to the device

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectaccount_idpage, per_page, from, to, type, toggle, config_name, account_name, sort_orderList WARP configuration and enablement toggle change events by device.

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.
account_namestringFilter events by account name.
config_namestringFilter events by WARP configuration name changed from or to. Applicable to type='config' events only.
fromstringStart time for the query in ISO (RFC3339 - ISO 8601) format
pagenumberPage number of paginated results
per_pagenumberNumber of items per page
sort_orderstringSort response by event timestamp.
tostringEnd time for the query in ISO (RFC3339 - ISO 8601) format
togglestringFilter events by type toggle value. Applicable to type='toggle' events only.
typestringFilter events by type 'config' or 'toggle'

SELECT examples

List WARP configuration and enablement toggle change events by device.

SELECT
device_id,
registration_id,
account_name,
account_tag,
device_registration,
from,
hostname,
serial_number,
timestamp,
to,
toggle,
user_email
FROM cloudflare.zero_trust.warp_change_events
WHERE account_id = '{{ account_id }}' -- required
AND page = '{{ page }}'
AND per_page = '{{ per_page }}'
AND from = '{{ from }}'
AND to = '{{ to }}'
AND type = '{{ type }}'
AND toggle = '{{ toggle }}'
AND config_name = '{{ config_name }}'
AND account_name = '{{ account_name }}'
AND sort_order = '{{ sort_order }}'
;