Skip to main content

vaults

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

Overview

Namevaults
TypeResource
Idazure.key_vault.vaults

Fields

NameDatatypeDescription
idtextFully qualified identifier of the key vault resource.
nametextName of the key vault resource.
access_policiestextfield from the properties object
create_modetextfield from the properties object
enable_purge_protectiontextfield from the properties object
enable_rbac_authorizationtextfield from the properties object
enable_soft_deletetextfield from the properties object
enabled_for_deploymenttextfield from the properties object
enabled_for_disk_encryptiontextfield from the properties object
enabled_for_template_deploymenttextfield from the properties object
hsm_pool_resource_idtextfield from the properties object
locationtextAzure location of the key vault resource.
network_aclstextfield from the properties object
private_endpoint_connectionstextfield from the properties object
provisioning_statetextfield from the properties object
public_network_accesstextfield from the properties object
resourceGroupNametextfield from the properties object
skutextfield from the properties object
soft_delete_retention_in_daystextfield from the properties object
subscriptionIdtextfield from the properties object
system_datatextfield from the properties object
tagstextTags assigned to the key vault resource.
tenant_idtextfield from the properties object
typetextResource type of the key vault resource.
vaultNametextfield from the properties object
vault_uritextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTresourceGroupName, subscriptionId, vaultNameGets the specified Azure key vault.
listSELECT$filter, subscriptionIdThe List operation gets information about the vaults associated with the subscription.
list_by_resource_groupSELECTresourceGroupName, subscriptionIdThe List operation gets information about the vaults associated with the subscription and within the specified resource group.
list_by_subscriptionSELECTsubscriptionIdThe List operation gets information about the vaults associated with the subscription.
create_or_updateINSERTresourceGroupName, subscriptionId, vaultName, data__location, data__propertiesCreate or update a key vault in the specified subscription.
deleteDELETEresourceGroupName, subscriptionId, vaultNameDeletes the specified Azure key vault.
updateUPDATEresourceGroupName, subscriptionId, vaultNameUpdate a key vault in the specified subscription.
check_name_availabilityEXECsubscriptionId, data__name, data__typeChecks that the vault name is valid and is not already in use.
purge_deletedEXEClocation, subscriptionId, vaultNamePermanently deletes the specified vault. aka Purges the deleted Azure key vault.

SELECT examples

The List operation gets information about the vaults associated with the subscription.

SELECT
id,
name,
access_policies,
create_mode,
enable_purge_protection,
enable_rbac_authorization,
enable_soft_delete,
enabled_for_deployment,
enabled_for_disk_encryption,
enabled_for_template_deployment,
hsm_pool_resource_id,
location,
network_acls,
private_endpoint_connections,
provisioning_state,
public_network_access,
resourceGroupName,
sku,
soft_delete_retention_in_days,
subscriptionId,
system_data,
tags,
tenant_id,
type,
vaultName,
vault_uri
FROM azure.key_vault.vw_vaults
WHERE subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.key_vault.vaults (
resourceGroupName,
subscriptionId,
vaultName,
data__location,
data__properties,
location,
tags,
properties
)
SELECT
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ vaultName }}',
'{{ data__location }}',
'{{ data__properties }}',
'{{ location }}',
'{{ tags }}',
'{{ properties }}'
;

UPDATE example

Updates a vaults resource.

/*+ update */
UPDATE azure.key_vault.vaults
SET
tags = '{{ tags }}',
properties = '{{ properties }}'
WHERE
resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND vaultName = '{{ vaultName }}';

DELETE example

Deletes the specified vaults resource.

/*+ delete */
DELETE FROM azure.key_vault.vaults
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND vaultName = '{{ vaultName }}';