Skip to main content

categories

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

Overview

Namecategories
TypeResource
Idcloudflare.zero_trust.categories

Fields

The following fields are returned by SELECT queries:

Get application category by id response.

NameDatatypeDescription
idstringReturns the category ID. (example: 12345678-1234-1234-1234-123456789012)
namestringReturns the category name. (example: Category name)
created_atstringReturns the category creation time. (example: 2025-01-01T00:00:00Z)
descriptionstringReturns the category description. (example: Category description)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectaccount_id, idGet application category by ID.

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.
idstringResource ID.

SELECT examples

Get application category by ID.

SELECT
id,
name,
created_at,
description
FROM cloudflare.zero_trust.categories
WHERE account_id = '{{ account_id }}' -- required
AND id = '{{ id }}' -- required
;