embeds
Creates, updates, deletes, gets or lists an embeds resource.
Overview
| Name | embeds |
| Type | Resource |
| Id | cloudflare.streams.embeds |
Fields
The following fields are returned by SELECT queries:
- list
Retreieve embed Code HTML response.
| Name | Datatype | Description |
|---|---|---|
contents | string |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
list | select | identifier, account_id | Fetches an HTML code snippet to embed a video in a web page delivered through Cloudflare. On success, returns an HTML fragment for use on web pages to display a video. On failure, returns a JSON response body. |
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.
| Name | Datatype | Description |
|---|---|---|
account_id | string | The Cloudflare account ID. |
identifier | string | Resource identifier. |
SELECT examples
- list
Fetches an HTML code snippet to embed a video in a web page delivered through Cloudflare. On success, returns an HTML fragment for use on web pages to display a video. On failure, returns a JSON response body.
SELECT
contents
FROM cloudflare.streams.embeds
WHERE identifier = '{{ identifier }}' -- required
AND account_id = '{{ account_id }}' -- required
;