Skip to main content

devices

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

Overview

Namedevices
TypeResource
Idcloudflare.zero_trust.devices

Fields

The following fields are returned by SELECT queries:

SELECT not supported for this resource, use SHOW METHODS to view available operations for the resource.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
deletedeletedevice_id, account_idDeletes a WARP device.
create_networksexecaccount_id, name, type, configCreates a new device managed network.
delete_policyexecpolicy_id, account_idDeletes a device settings profile and fetches a list of the remaining profiles for an account.
update_policyexecpolicy_id, account_idUpdates a configured device settings profile.
unrevokeexecaccount_idUnrevokes a list of devices. Not supported when multi-user mode is enabled. Deprecated: please use POST /accounts/{account_id}/devices/registrations/unrevoke instead.

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
policy_idstringThe Access policy ID.

DELETE examples

Deletes a WARP device.

DELETE FROM cloudflare.zero_trust.devices
WHERE device_id = '{{ device_id }}' --required
AND account_id = '{{ account_id }}' --required
;

Lifecycle Methods

Creates a new device managed network.

EXEC cloudflare.zero_trust.devices.create_networks
@account_id='{{ account_id }}' --required
@@json=
'{
"config": "{{ config }}",
"name": "{{ name }}",
"type": "{{ type }}"
}'
;