Skip to main content

managed_database_transparent_data_encryptions

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

Overview

Namemanaged_database_transparent_data_encryptions
TypeResource
Idazure.sql.managed_database_transparent_data_encryptions

Fields

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

Methods

NameAccessible byRequired ParamsDescription
getSELECTdatabaseName, managedInstanceName, resourceGroupName, subscriptionId, tdeNameGets a managed database's transparent data encryption.
list_by_databaseSELECTdatabaseName, managedInstanceName, resourceGroupName, subscriptionIdGets a list of managed database's transparent data encryptions.
create_or_updateINSERTdatabaseName, managedInstanceName, resourceGroupName, subscriptionId, tdeNameUpdates a database's transparent data encryption configuration.

SELECT examples

Gets a list of managed database's transparent data encryptions.

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

INSERT example

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

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