Skip to main content

fields

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

Overview

Namefields
TypeResource
Idcloudflare.logs.fields

Fields

The following fields are returned by SELECT queries:

List fields response

NameDatatypeDescription
keystring (example: value)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectzone_idLists all fields available. The response is json object with key-value pairs, where keys are field names, and values are descriptions.

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
zone_idstringThe Cloudflare zone ID.

SELECT examples

Lists all fields available. The response is json object with key-value pairs, where keys are field names, and values are descriptions.

SELECT
key
FROM cloudflare.logs.fields
WHERE zone_id = '{{ zone_id }}' -- required
;