Skip to main content

browser

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

Overview

Namebrowser
TypeResource
Idcloudflare.browser_rendering.browser

Fields

The following fields are returned by SELECT queries:

SELECT not supported for this resource, use SHOW METHODS to view available operations for the resource.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
createinsertaccount_idkeep_alive, lab, targets, recording
deletedeleteaccount_id, session_idCloses an existing browser session.

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.
keep_alivenumberKeep-alive time in milliseconds.
labbooleanUse experimental browser.
recordingboolean
targetsbooleanInclude browser targets in response.

INSERT examples

No description available.

INSERT INTO cloudflare.browser_rendering.browser (
account_id,
keep_alive,
lab,
targets,
recording
)
SELECT
'{{ account_id }}',
'{{ keep_alive }}',
'{{ lab }}',
'{{ targets }}',
'{{ recording }}'
RETURNING
sessionId,
webSocketDebuggerUrl
;

DELETE examples

Closes an existing browser session.

DELETE FROM cloudflare.browser_rendering.browser
WHERE account_id = '{{ account_id }}' --required
AND session_id = '{{ session_id }}' --required
;