Skip to main content

jobs

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

Overview

Namejobs
TypeResource
Idcloudflare.ai.jobs

Fields

The following fields are returned by SELECT queries:

Returns a AutoRAG Job Details

NameDatatypeDescription
idstring
end_reasonstring
ended_atstring
last_seen_atstring
sourcestring (user, schedule)
started_atstring

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectid, job_id, account_id
listselectid, account_idpage, per_page

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.
job_idstringThe job ID.
pageinteger
per_pageinteger

SELECT examples

Returns a AutoRAG Job Details

SELECT
id,
end_reason,
ended_at,
last_seen_at,
source,
started_at
FROM cloudflare.ai.jobs
WHERE id = '{{ id }}' -- required
AND job_id = '{{ job_id }}' -- required
AND account_id = '{{ account_id }}' -- required
;