Skip to main content

backups

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

Overview

Namebackups
TypeResource
Idazure_isv.netapp.backups

Fields

NameDatatypeDescription
accountNametextfield from the properties object
backupNametextfield from the properties object
backupVaultNametextfield from the properties object
backup_idtextfield from the properties object
backup_policy_resource_idtextfield from the properties object
backup_typetextfield from the properties object
creation_datetextfield from the properties object
failure_reasontextfield from the properties object
labeltextfield from the properties object
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
sizetextfield from the properties object
snapshot_nametextfield from the properties object
subscriptionIdtextfield from the properties object
use_existing_snapshottextfield from the properties object
volume_resource_idtextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTaccountName, backupName, backupVaultName, resourceGroupName, subscriptionIdGet the specified Backup under Backup Vault.
list_by_vaultSELECTaccountName, backupVaultName, resourceGroupName, subscriptionIdList all backups Under a Backup Vault
createINSERTaccountName, backupName, backupVaultName, resourceGroupName, subscriptionId, data__propertiesCreate a backup under the Backup Vault
deleteDELETEaccountName, backupName, backupVaultName, resourceGroupName, subscriptionIdDelete a Backup under the Backup Vault
updateUPDATEaccountName, backupName, backupVaultName, resourceGroupName, subscriptionIdPatch a Backup under the Backup Vault

SELECT examples

List all backups Under a Backup Vault

SELECT
accountName,
backupName,
backupVaultName,
backup_id,
backup_policy_resource_id,
backup_type,
creation_date,
failure_reason,
label,
provisioning_state,
resourceGroupName,
size,
snapshot_name,
subscriptionId,
use_existing_snapshot,
volume_resource_id
FROM azure_isv.netapp.vw_backups
WHERE accountName = '{{ accountName }}'
AND backupVaultName = '{{ backupVaultName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

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

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

UPDATE example

Updates a backups resource.

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

DELETE example

Deletes the specified backups resource.

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