Skip to main content

vaults

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

Overview

Namevaults
TypeResource
Idazure.data_replication.vaults

Fields

The following fields are returned by SELECT queries:

Returns Vault Model on success.

NameDatatypeDescription
idstringGets or sets the Id of the resource.
namestringGets or sets the name of the resource.
locationstringGets or sets the location of the vault.
propertiesobjectVault properties.
systemDataobjectSystem data required to be defined for Azure resources.
tagsobjectGets or sets the resource tags.
typestringGets or sets the type of the resource.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectsubscriptionId, resourceGroupName, vaultNameGets the details of the vault.
listselectsubscriptionId, resourceGroupNamecontinuationTokenGets the list of vaults in the given subscription and resource group.
list_by_subscriptionselectsubscriptionIdcontinuationTokenGets the list of vaults in the given subscription.
createinsertsubscriptionId, resourceGroupName, vaultName, data__locationCreates the vault.
updateupdatesubscriptionId, resourceGroupName, vaultNamePerforms update on the vault.
deletedeletesubscriptionId, resourceGroupName, vaultNameRemoves the vault.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
resourceGroupNamestringThe name of the resource group. The name is case insensitive.
subscriptionIdstring (uuid)The ID of the target subscription. The value must be an UUID.
vaultNamestringThe vault name.
continuationTokenstringContinuation token from the previous call.

SELECT examples

Gets the details of the vault.

SELECT
id,
name,
location,
properties,
systemData,
tags,
type
FROM azure.data_replication.vaults
WHERE subscriptionId = '{{ subscriptionId }}' -- required
AND resourceGroupName = '{{ resourceGroupName }}' -- required
AND vaultName = '{{ vaultName }}' -- required
;

INSERT examples

Creates the vault.

INSERT INTO azure.data_replication.vaults (
data__location,
data__tags,
data__properties,
subscriptionId,
resourceGroupName,
vaultName
)
SELECT
'{{ location }}' /* required */,
'{{ tags }}',
'{{ properties }}',
'{{ subscriptionId }}',
'{{ resourceGroupName }}',
'{{ vaultName }}'
RETURNING
id,
name,
location,
properties,
systemData,
tags,
type
;

UPDATE examples

Performs update on the vault.

UPDATE azure.data_replication.vaults
SET
data__tags = '{{ tags }}',
data__properties = '{{ properties }}'
WHERE
subscriptionId = '{{ subscriptionId }}' --required
AND resourceGroupName = '{{ resourceGroupName }}' --required
AND vaultName = '{{ vaultName }}' --required
RETURNING
id,
name,
location,
properties,
systemData,
tags,
type;

DELETE examples

Removes the vault.

DELETE FROM azure.data_replication.vaults
WHERE subscriptionId = '{{ subscriptionId }}' --required
AND resourceGroupName = '{{ resourceGroupName }}' --required
AND vaultName = '{{ vaultName }}' --required
;