Skip to main content

json_close

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

Overview

Namejson_close
TypeResource
Idcloudflare.browser_rendering.json_close

Fields

The following fields are returned by SELECT queries:

Target is closing.

NameDatatypeDescription
messagestringTarget is closing.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectsession_id, account_id, target_idCloses a specific browser target (tab, page, etc.) by its ID. Returns 'Target is closing' on success or an error if the target is not found.

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.
target_idstringTarget ID to close.

SELECT examples

Closes a specific browser target (tab, page, etc.) by its ID. Returns 'Target is closing' on success or an error if the target is not found.

SELECT
message
FROM cloudflare.browser_rendering.json_close
WHERE session_id = '{{ session_id }}' -- required
AND account_id = '{{ account_id }}' -- required
AND target_id = '{{ target_id }}' -- required
;