Skip to main content

encryption_keys

Creates, updates, deletes, gets or lists an encryption_keys resource.

Overview​

Nameencryption_keys
TypeResource
Idovh.dbaas_logs.encryption_keys

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
encryption_key_idstring (uuid)Encryption Key ID (wire: encryptionKeyId)
algorithmstringEncryption Key algorithm (ECC25519, RSA4096)
contentstring (password)Encryption Key content
created_atstring (date-time)Encryption Key creation date (wire: createdAt)
fingerprintstringEncryption Key fingerprint
is_editablebooleanIndicates if you are allowed to edit entry (wire: isEditable)
nb_archiveintegerNumber of archives encrypted with this Encryption Key (wire: nbArchive)
titlestringEncryption Key title
uidstringEncryption Key user ID

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectencryption_key_id, service_nameReturns the encryption key.
listselectservice_nametitle_pattern, x_pagination_modeReturns the encryption keys of the Logs Data Platform service.
createinsertservice_name, content, fingerprint, titleCreates an encryption key on the Logs Data Platform service.
deletedeleteencryption_key_id, service_nameDeletes the encryption 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.

NameDatatypeDescription
api_hoststringThe OVHcloud API host. Selected by OVH_ENDPOINT (ovh-eu, ovh-ca or ovh-us; default ovh-eu). (default: api.eu.ovhcloud.com, x-stackQL-envVarSelector: {"envVar":"OVH_ENDPOINT","default":"ovh-eu","values":{"ovh-eu":"api.eu.ovhcloud.com","ovh-ca":"api.ca.ovhcloud.com","ovh-us":"api.us.ovhcloud.com"}})
encryption_key_idstring (uuid)Encryption key ID (wire: encryptionKeyId)
service_namestringService name (wire: serviceName)
title_patternstringFilter by title (like) (wire: titlePattern)
x_pagination_modestringSent as CachedObjectList-Pages by default so the list returns the full objects rather than their identifiers. (wire: X-Pagination-Mode)

SELECT examples​

Returns the encryption key.

SELECT
encryption_key_id,
algorithm,
content,
created_at,
fingerprint,
is_editable,
nb_archive,
title,
uid
FROM ovh.dbaas_logs.encryption_keys
WHERE encryption_key_id = '{{ encryption_key_id }}' -- required
AND service_name = '{{ service_name }}' -- required
;

INSERT examples​

Creates an encryption key on the Logs Data Platform service.

INSERT INTO ovh.dbaas_logs.encryption_keys (
content,
fingerprint,
title,
service_name
)
SELECT
'{{ content }}' /* required */,
'{{ fingerprint }}' /* required */,
'{{ title }}' /* required */,
'{{ service_name }}'
RETURNING
alias_id,
dashboard_id,
encryption_key_id,
index_id,
input_id,
operation_id,
osd_id,
role_id,
stream_id,
subscription_id,
tenant_id,
token_id,
service_name,
created_at,
state,
updated_at
;

DELETE examples​

Deletes the encryption key.

DELETE FROM ovh.dbaas_logs.encryption_keys
WHERE encryption_key_id = '{{ encryption_key_id }}' --required
AND service_name = '{{ service_name }}' --required
;