Skip to main content

gateway_categories

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

Overview

Namegateway_categories
TypeResource
Idcloudflare.zero_trust.gateway_categories

Fields

The following fields are returned by SELECT queries:

List categories response.

NameDatatypeDescription
idintegerIdentify this category. Only one category per ID.
namestringSpecify the category name. (example: Education)
betabooleanIndicate whether the category is in beta and subject to change.
classstringSpecify which account types can create policies for this category. blocked Blocks unconditionally for all accounts. removalPending Allows removal from policies but disables addition. noBlock Prevents blocking. (free, premium, blocked, removalPending, noBlock) (example: premium)
descriptionstringProvide a short summary of domains in the category. (example: Sites related to educational content that are not included in other categories such as Science, Technology or Educational institutions.)
subcategoriesarrayProvide all subcategories for this category.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectaccount_idList all categories.

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

List all categories.

SELECT
id,
name,
beta,
class,
description,
subcategories
FROM cloudflare.zero_trust.gateway_categories
WHERE account_id = '{{ account_id }}' -- required
;