Skip to main content

encryption_protectors

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

Overview

Nameencryption_protectors
TypeResource
Idazure.sql.encryption_protectors

Fields

NameDatatypeDescription
auto_rotation_enabledtextfield from the properties object
encryptionProtectorNametextfield from the properties object
kindtextKind of encryption protector. This is metadata used for the Azure portal experience.
locationtextResource location.
resourceGroupNametextfield from the properties object
serverNametextfield from the properties object
server_key_nametextfield from the properties object
server_key_typetextfield from the properties object
subregiontextfield from the properties object
subscriptionIdtextfield from the properties object
thumbprinttextfield from the properties object
uritextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTencryptionProtectorName, resourceGroupName, serverName, subscriptionIdGets a server encryption protector.
list_by_serverSELECTresourceGroupName, serverName, subscriptionIdGets a list of server encryption protectors
create_or_updateINSERTencryptionProtectorName, resourceGroupName, serverName, subscriptionIdUpdates an existing encryption protector.
revalidateEXECencryptionProtectorName, resourceGroupName, serverName, subscriptionIdRevalidates an existing encryption protector.

SELECT examples

Gets a list of server encryption protectors

SELECT
auto_rotation_enabled,
encryptionProtectorName,
kind,
location,
resourceGroupName,
serverName,
server_key_name,
server_key_type,
subregion,
subscriptionId,
thumbprint,
uri
FROM azure.sql.vw_encryption_protectors
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND serverName = '{{ serverName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

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

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