Skip to main content

workspace_managed_sql_server_encryption_protectors

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

Overview

Nameworkspace_managed_sql_server_encryption_protectors
TypeResource
Idazure.synapse.workspace_managed_sql_server_encryption_protectors

Fields

NameDatatypeDescription
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
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
workspaceNametextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTencryptionProtectorName, resourceGroupName, subscriptionId, workspaceNameGet workspace managed sql server's encryption protector.
listSELECTresourceGroupName, subscriptionId, workspaceNameGet list of encryption protectors for workspace managed sql server.
create_or_updateINSERTencryptionProtectorName, resourceGroupName, subscriptionId, workspaceNameUpdates workspace managed sql server's encryption protector.
revalidateEXECencryptionProtectorName, resourceGroupName, subscriptionId, workspaceNameRevalidates workspace managed sql server's existing encryption protector.

SELECT examples

Get list of encryption protectors for workspace managed sql server.

SELECT
encryptionProtectorName,
kind,
location,
resourceGroupName,
server_key_name,
server_key_type,
subregion,
subscriptionId,
thumbprint,
uri,
workspaceName
FROM azure.synapse.vw_workspace_managed_sql_server_encryption_protectors
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND workspaceName = '{{ workspaceName }}';

INSERT example

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

/*+ create */
INSERT INTO azure.synapse.workspace_managed_sql_server_encryption_protectors (
encryptionProtectorName,
resourceGroupName,
subscriptionId,
workspaceName,
properties
)
SELECT
'{{ encryptionProtectorName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ workspaceName }}',
'{{ properties }}'
;