Skip to main content

backup_vaults

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

Overview

Namebackup_vaults
TypeResource
Idazure_isv.netapp.backup_vaults

Fields

NameDatatypeDescription
accountNametextfield from the properties object
backupVaultNametextfield from the properties object
locationtextThe geo-location where the resource lives
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
subscriptionIdtextfield from the properties object
tagstextResource tags.

Methods

NameAccessible byRequired ParamsDescription
getSELECTaccountName, backupVaultName, resourceGroupName, subscriptionIdGet the Backup Vault
list_by_netapp_accountSELECTaccountName, resourceGroupName, subscriptionIdList and describe all Backup Vaults in the NetApp account.
create_or_updateINSERTaccountName, backupVaultName, resourceGroupName, subscriptionId, data__locationCreate or update the specified Backup Vault in the NetApp account
deleteDELETEaccountName, backupVaultName, resourceGroupName, subscriptionIdDelete the specified Backup Vault
updateUPDATEaccountName, backupVaultName, resourceGroupName, subscriptionIdPatch the specified NetApp Backup Vault

SELECT examples

List and describe all Backup Vaults in the NetApp account.

SELECT
accountName,
backupVaultName,
location,
provisioning_state,
resourceGroupName,
subscriptionId,
tags
FROM azure_isv.netapp.vw_backup_vaults
WHERE accountName = '{{ accountName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure_isv.netapp.backup_vaults (
accountName,
backupVaultName,
resourceGroupName,
subscriptionId,
data__location,
tags,
location,
properties
)
SELECT
'{{ accountName }}',
'{{ backupVaultName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ data__location }}',
'{{ tags }}',
'{{ location }}',
'{{ properties }}'
;

UPDATE example

Updates a backup_vaults resource.

/*+ update */
UPDATE azure_isv.netapp.backup_vaults
SET
tags = '{{ tags }}'
WHERE
accountName = '{{ accountName }}'
AND backupVaultName = '{{ backupVaultName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

DELETE example

Deletes the specified backup_vaults resource.

/*+ delete */
DELETE FROM azure_isv.netapp.backup_vaults
WHERE accountName = '{{ accountName }}'
AND backupVaultName = '{{ backupVaultName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';