Skip to main content

files

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

Overview

Namefiles
TypeResource
Idcloudflare.ai.files

Fields

The following fields are returned by SELECT queries:

Returns the AI Search files

NameDatatypeDescription
errorstring
keystring

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectid, account_idpage, per_page, search, status

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.
pageinteger
per_pageinteger
statusstring

SELECT examples

Returns the AI Search files

SELECT
error,
key
FROM cloudflare.ai.files
WHERE id = '{{ id }}' -- required
AND account_id = '{{ account_id }}' -- required
AND page = '{{ page }}'
AND per_page = '{{ per_page }}'
AND search = '{{ search }}'
AND status = '{{ status }}'
;