Skip to main content

vaults

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

Overview

Namevaults
TypeResource
Idazure.data_replication.vaults

Fields

NameDatatypeDescription
idtextGets or sets the Id of the resource.
nametextGets or sets the name of the resource.
locationtextGets or sets the location of the vault.
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
service_resource_idtextfield from the properties object
subscriptionIdtextfield from the properties object
system_datatextfield from the properties object
tagstextGets or sets the resource tags.
typetextGets or sets the type of the resource.
vaultNametextfield from the properties object
vault_typetextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTresourceGroupName, subscriptionId, vaultNameGets the details of the vault.
listSELECTresourceGroupName, subscriptionIdGets the list of vaults in the given subscription and resource group.
list_by_subscriptionSELECTsubscriptionIdGets the list of vaults in the given subscription.
createINSERTresourceGroupName, subscriptionId, vaultName, data__locationCreates the vault.
deleteDELETEresourceGroupName, subscriptionId, vaultNameRemoves the vault.
updateUPDATEresourceGroupName, subscriptionId, vaultNamePerforms update on the vault.

SELECT examples

Gets the list of vaults in the given subscription.

SELECT
id,
name,
location,
provisioning_state,
resourceGroupName,
service_resource_id,
subscriptionId,
system_data,
tags,
type,
vaultName,
vault_type
FROM azure.data_replication.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.data_replication.vaults (
resourceGroupName,
subscriptionId,
vaultName,
data__location,
location,
tags,
properties
)
SELECT
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ vaultName }}',
'{{ data__location }}',
'{{ location }}',
'{{ tags }}',
'{{ properties }}'
;

UPDATE example

Updates a vaults resource.

/*+ update */
UPDATE azure.data_replication.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.data_replication.vaults
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND vaultName = '{{ vaultName }}';