Skip to main content

dek_versions

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

Overview

Namedek_versions
TypeResource
Idconfluent.encryption_keys.dek_versions

Fields

NameDatatypeDescription
algorithmstringAlgorithm of the dek
deletedbooleanWhether the dek is deleted
encryptedKeyMaterialstringEncrypted key material of the dek
kekNamestringKek name of the dek
keyMaterialstringRaw key material of the dek
subjectstringSubject of the dek
tsintegerTimestamp of the dek
versionintegerVersion of the dek

Methods

NameAccessible byRequired ParamsDescription
get_dek_by_versionSELECTname, subject, version
get_dek_versionsSELECTname, subject
delete_dek_versionDELETEname, subject, version
undelete_dek_versionEXECname, subject, version

SELECT examples

SELECT
algorithm,
deleted,
encryptedKeyMaterial,
kekName,
keyMaterial,
subject,
ts,
version
FROM confluent.encryption_keys.dek_versions
WHERE name = '{{ name }}'
AND subject = '{{ subject }}';

DELETE example

Deletes the specified dek_versions resource.

/*+ delete */
DELETE FROM confluent.encryption_keys.dek_versions
WHERE name = '{{ name }}'
AND subject = '{{ subject }}'
AND version = '{{ version }}';