Skip to main content

backups

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

Overview

Namebackups
TypeResource
Idazure_isv.netapp.backups

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
propertiesobjectBackup Properties

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectsubscriptionId, resourceGroupName, accountName, backupVaultName, backupNameGet the specified Backup under Backup Vault.
list_by_vaultselectsubscriptionId, resourceGroupName, accountName, backupVaultName$filterList all backups Under a Backup Vault
createinsertsubscriptionId, resourceGroupName, accountName, backupVaultName, backupName, data__propertiesCreate a backup under the Backup Vault
updateupdatesubscriptionId, resourceGroupName, accountName, backupVaultName, backupNamePatch a Backup under the Backup Vault
deletedeletesubscriptionId, resourceGroupName, accountName, backupVaultName, backupNameDelete a Backup under the Backup 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
accountNamestringThe name of the NetApp account
backupNamestringThe name of the backup
backupVaultNamestringThe name of the Backup Vault
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.
$filterstringAn option to specify the VolumeResourceId. If present, then only returns the backups under the specified volume

SELECT examples

Get the specified Backup under Backup Vault.

SELECT
properties
FROM azure_isv.netapp.backups
WHERE subscriptionId = '{{ subscriptionId }}' -- required
AND resourceGroupName = '{{ resourceGroupName }}' -- required
AND accountName = '{{ accountName }}' -- required
AND backupVaultName = '{{ backupVaultName }}' -- required
AND backupName = '{{ backupName }}' -- required
;

INSERT examples

Create a backup under the Backup Vault

INSERT INTO azure_isv.netapp.backups (
data__properties,
subscriptionId,
resourceGroupName,
accountName,
backupVaultName,
backupName
)
SELECT
'{{ properties }}' /* required */,
'{{ subscriptionId }}',
'{{ resourceGroupName }}',
'{{ accountName }}',
'{{ backupVaultName }}',
'{{ backupName }}'
RETURNING
properties
;

UPDATE examples

Patch a Backup under the Backup Vault

UPDATE azure_isv.netapp.backups
SET
data__properties = '{{ properties }}'
WHERE
subscriptionId = '{{ subscriptionId }}' --required
AND resourceGroupName = '{{ resourceGroupName }}' --required
AND accountName = '{{ accountName }}' --required
AND backupVaultName = '{{ backupVaultName }}' --required
AND backupName = '{{ backupName }}' --required
RETURNING
properties;

DELETE examples

Delete a Backup under the Backup Vault

DELETE FROM azure_isv.netapp.backups
WHERE subscriptionId = '{{ subscriptionId }}' --required
AND resourceGroupName = '{{ resourceGroupName }}' --required
AND accountName = '{{ accountName }}' --required
AND backupVaultName = '{{ backupVaultName }}' --required
AND backupName = '{{ backupName }}' --required
;