Skip to main content

accounts_devices

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

Overview

Nameaccounts_devices
TypeResource
Idcloudflare.zero_trust.accounts_devices

Fields

The following fields are returned by SELECT queries:

Get device details response.

NameDatatypeDescription
idstringRegistration ID. Equal to Device ID except for accounts which enabled multi-user mode. (example: f174e90a-fafe-4643-bbbc-4a0ed4fc8415)
namestringThe device name. (example: My mobile device)
gateway_device_idstring (example: PD33E90AXfafe14643cbbbc-4a0ed4fc8415Q)
accountobject
createdstring (date-time)When the device was created. (example: 2017-06-14T00:00:00Z)
deletedbooleanTrue if the device was deleted.
device_typestring (example: windows)
ipstringIPv4 or IPv6 address. (example: 1.1.1.1)
keystringThe device's public key. (example: yek0SUYoOQ10vMGsIYAevozXUQpQtNFJFfFGqER/BGc=)
key_typestringType of the key. (example: curve25519)
last_seenstring (date-time)When the device last connected to Cloudflare services. (example: 2017-06-14T00:00:00Z)
mac_addressstringThe device mac address. (example: 00-00-5E-00-53-00)
modelstringThe device model name. (example: MyPhone(pro-X))
os_versionstringThe operating system version. (example: 10.0.0)
serial_numberstringThe device serial number. (example: EXAMPLEHMD6R)
tunnel_typestringType of the tunnel connection used. (example: masque)
updatedstring (date-time)When the device was updated. (example: 2017-06-14T00:00:00Z)
userobject
versionstringThe WARP client version. (example: 1.0.0)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectdevice_id, account_idFetches a single WARP device. Not supported when multi-user mode is enabled for the account. Deprecated: please use one of the following endpoints instead: - GET /accounts/{account_id}/devices/physical-devices/{device_id} - GET /accounts/{account_id}/devices/registrations/{registration_id}
listselectaccount_idList WARP devices. Not supported when multi-user mode is enabled for the account. Deprecated: please use one of the following endpoints instead: - GET /accounts/{account_id}/devices/physical-devices - GET /accounts/{account_id}/devices/registrations

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_idstring

SELECT examples

Fetches a single WARP device. Not supported when multi-user mode is enabled for the account. Deprecated: please use one of the following endpoints instead: - GET /accounts/{account_id}/devices/physical-devices/{device_id} - GET /accounts/{account_id}/devices/registrations/{registration_id}

SELECT
id,
name,
gateway_device_id,
account,
created,
deleted,
device_type,
ip,
key,
key_type,
last_seen,
mac_address,
model,
os_version,
serial_number,
tunnel_type,
updated,
user,
version
FROM cloudflare.zero_trust.accounts_devices
WHERE device_id = '{{ device_id }}' -- required
AND account_id = '{{ account_id }}' -- required
;