Skip to main content

session

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

Overview​

Namesession
TypeResource
Idcloudflare.browser_rendering.session

Fields​

The following fields are returned by SELECT queries:

Returns the session details.

NameDatatypeDescription
closeReasonstringReason for session closure.
closeReasonTextstringHuman-readable close reason.
connectionEndTimenumberConnection end time.
connectionIdstringConnection ID.
connectionStartTimenumberConnection start time.
devtoolsFrontendUrlstringDevTools frontend URL.
endTimenumberSession end time.
lastUpdatednumberLast updated timestamp.
sessionIdstring (uuid)Session ID.
startTimenumberSession start time.
webSocketDebuggerUrlstringWebSocket URL for debugging this target.

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectaccount_id, session_idGet details for a specific browser session.
listselectaccount_idlimit, offsetList active browser sessions.

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.
session_idstringThe session ID.
limitnumber
offsetnumber

SELECT examples​

Get details for a specific browser session.

SELECT
closeReason,
closeReasonText,
connectionEndTime,
connectionId,
connectionStartTime,
devtoolsFrontendUrl,
endTime,
lastUpdated,
sessionId,
startTime,
webSocketDebuggerUrl
FROM cloudflare.browser_rendering.session
WHERE account_id = '{{ account_id }}' -- required
AND session_id = '{{ session_id }}' -- required
;