Skip to main content

fields

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

Overview

Namefields
TypeResource
Idcloudflare.logpush.fields

Fields

The following fields are returned by SELECT queries:

List fields response.

NameDatatypeDescription
errorsarray
messagesarray
resultobject
successbooleanWhether the API call was successful. (true)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_by_accountselectdataset_id, account_idLists all fields available for a dataset. The response result is. an object with key-value pairs, where keys are field names, and values are descriptions.
list_by_zoneselectdataset_id, zone_idLists all fields available for a dataset. The response result is. an 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
account_idstringThe Cloudflare account ID.
dataset_idstringThe dataset ID.
zone_idstringThe Cloudflare zone ID.

SELECT examples

Lists all fields available for a dataset. The response result is. an object with key-value pairs, where keys are field names, and values are descriptions.

SELECT
errors,
messages,
result,
success
FROM cloudflare.logpush.fields
WHERE dataset_id = '{{ dataset_id }}' -- required
AND account_id = '{{ account_id }}' -- required
;