keys
Creates, updates, deletes, gets or lists a keys resource.
Overview
| Name | keys |
| Type | Resource |
| Id | cloudflare.streams.keys |
Fields
The following fields are returned by SELECT queries:
- list
List signing keys response.
| Name | Datatype | Description |
|---|---|---|
id | string | Identifier. (example: 023e105f4ecef8ad9ca31a8372d0c353) |
key_id | string | The unique identifier for the signing key. (example: e9db990a82666dd571c77f944a5c5c8d) |
created | string (date-time) | The date and time a signing key was created. (example: 2014-01-02T02:20:00Z) |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
list | select | account_id | Lists the video ID and creation date and time when a signing key was created. | |
create | insert | account_id | Creates an RSA private key in PEM and JWK formats. Key files are only displayed once after creation. Keys are created, used, and deleted independently of videos, and every key can sign any video. | |
delete | delete | identifier, account_id | Deletes signing keys and revokes all signed URLs generated with the key. |
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
Lists the video ID and creation date and time when a signing key was created.
SELECT
id,
key_id,
created
FROM cloudflare.streams.keys
WHERE account_id = '{{ account_id }}' -- required
;
INSERT examples
- create
- Manifest
Creates an RSA private key in PEM and JWK formats. Key files are only displayed once after creation. Keys are created, used, and deleted independently of videos, and every key can sign any video.
INSERT INTO cloudflare.streams.keys (
account_id
)
SELECT
'{{ account_id }}'
RETURNING
errors,
messages,
result,
success
;
# Description fields are for documentation purposes
- name: keys
props:
- name: account_id
value: "{{ account_id }}"
description: Required parameter for the keys resource.
DELETE examples
- delete
Deletes signing keys and revokes all signed URLs generated with the key.
DELETE FROM cloudflare.streams.keys
WHERE identifier = '{{ identifier }}' --required
AND account_id = '{{ account_id }}' --required
;