Skip to main content

keys

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

Overview

Namekeys
TypeResource
Idazure.synapse.keys

Fields

NameDatatypeDescription
is_active_cmktextfield from the properties object
keyNametextfield from the properties object
key_vault_urltextfield from the properties object
resourceGroupNametextfield from the properties object
subscriptionIdtextfield from the properties object
workspaceNametextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTkeyName, resourceGroupName, subscriptionId, workspaceNameGets a workspace key
list_by_workspaceSELECTresourceGroupName, subscriptionId, workspaceNameReturns a list of keys in a workspace
create_or_updateINSERTkeyName, resourceGroupName, subscriptionId, workspaceNameCreates or updates a workspace key
deleteDELETEkeyName, resourceGroupName, subscriptionId, workspaceNameDeletes a workspace key

SELECT examples

Returns a list of keys in a workspace

SELECT
is_active_cmk,
keyName,
key_vault_url,
resourceGroupName,
subscriptionId,
workspaceName
FROM azure.synapse.vw_keys
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND workspaceName = '{{ workspaceName }}';

INSERT example

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

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

DELETE example

Deletes the specified keys resource.

/*+ delete */
DELETE FROM azure.synapse.keys
WHERE keyName = '{{ keyName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND workspaceName = '{{ workspaceName }}';