Skip to main content

sfu

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

Overview​

Namesfu
TypeResource
Idcloudflare.calls.sfu

Fields​

The following fields are returned by SELECT queries:

Retrieve app details response

NameDatatypeDescription
namestringA short description of Calls app, not shown to end users. (default: , example: production-realtime-app)
createdstring (date-time)The date and time the item was created. (example: 2014-01-02T02:20:00Z)
modifiedstring (date-time)The date and time the item was last modified. (example: 2014-01-02T02:20:00Z)
uidstringA Cloudflare-generated unique identifier for a item. (example: 2a95132c15732412d22c1476fa83f27a)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectapp_id, account_idFetches details for a single Calls app.
listselectaccount_idLists all apps in the Cloudflare account
createinsertaccount_idCreates a new Cloudflare calls app. An app is an unique enviroment where each Session can access all Tracks within the app.
updatereplaceapp_id, account_idEdit details for a single app.
deletedeleteapp_id, account_idDeletes an app from Cloudflare Calls

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.
app_idstringThe Access application ID.

SELECT examples​

Fetches details for a single Calls app.

SELECT
name,
created,
modified,
uid
FROM cloudflare.calls.sfu
WHERE app_id = '{{ app_id }}' -- required
AND account_id = '{{ account_id }}' -- required
;

INSERT examples​

Creates a new Cloudflare calls app. An app is an unique enviroment where each Session can access all Tracks within the app.

INSERT INTO cloudflare.calls.sfu (
name,
account_id
)
SELECT
'{{ name }}',
'{{ account_id }}'
RETURNING
errors,
messages,
result,
success
;

REPLACE examples​

Edit details for a single app.

REPLACE cloudflare.calls.sfu
SET
name = '{{ name }}'
WHERE
app_id = '{{ app_id }}' --required
AND account_id = '{{ account_id }}' --required
RETURNING
errors,
messages,
result,
success;

DELETE examples​

Deletes an app from Cloudflare Calls

DELETE FROM cloudflare.calls.sfu
WHERE app_id = '{{ app_id }}' --required
AND account_id = '{{ account_id }}' --required
;