Skip to main content

transparent_data_encryptions

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

Overview

Nametransparent_data_encryptions
TypeResource
Idazure.sql.transparent_data_encryptions

Fields

NameDatatypeDescription
databaseNametextfield from the properties object
resourceGroupNametextfield from the properties object
serverNametextfield from the properties object
statetextfield from the properties object
subscriptionIdtextfield from the properties object
tdeNametextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTdatabaseName, resourceGroupName, serverName, subscriptionId, tdeNameGets a logical database's transparent data encryption.
list_by_databaseSELECTdatabaseName, resourceGroupName, serverName, subscriptionIdGets a list of the logical database's transparent data encryption.
create_or_updateINSERTdatabaseName, resourceGroupName, serverName, subscriptionId, tdeNameUpdates a logical database's transparent data encryption configuration.

SELECT examples

Gets a list of the logical database's transparent data encryption.

SELECT
databaseName,
resourceGroupName,
serverName,
state,
subscriptionId,
tdeName
FROM azure.sql.vw_transparent_data_encryptions
WHERE databaseName = '{{ databaseName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND serverName = '{{ serverName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

Use the following StackQL query and manifest file to create a new transparent_data_encryptions resource.

/*+ create */
INSERT INTO azure.sql.transparent_data_encryptions (
databaseName,
resourceGroupName,
serverName,
subscriptionId,
tdeName,
properties
)
SELECT
'{{ databaseName }}',
'{{ resourceGroupName }}',
'{{ serverName }}',
'{{ subscriptionId }}',
'{{ tdeName }}',
'{{ properties }}'
;