Skip to main content

trees

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

Overview​

Nametrees
TypeResource
Idcloudflare.cloudforce_one.trees

Fields​

The following fields are returned by SELECT queries:

Folder tree structure.

NameDatatypeDescription
namestring (example: workers)
childrenarray
countnumber
pathstring (example: yara/workers)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectaccount_idGet the folder tree structure for rules navigation.

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.

SELECT examples​

Get the folder tree structure for rules navigation.

SELECT
name,
children,
count,
path
FROM cloudflare.cloudforce_one.trees
WHERE account_id = '{{ account_id }}' -- required
;