Skip to main content

backup_policies

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

Overview

Namebackup_policies
TypeResource
Idazure_isv.netapp.backup_policies

Fields

NameDatatypeDescription
accountNametextfield from the properties object
backupPolicyNametextfield from the properties object
backup_policy_idtextfield from the properties object
daily_backups_to_keeptextfield from the properties object
enabledtextfield from the properties object
etagtextA unique read-only string that changes whenever the resource is updated.
locationtextThe geo-location where the resource lives
monthly_backups_to_keeptextfield from the properties object
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
subscriptionIdtextfield from the properties object
tagstextResource tags.
volume_backupstextfield from the properties object
volumes_assignedtextfield from the properties object
weekly_backups_to_keeptextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTaccountName, backupPolicyName, resourceGroupName, subscriptionIdGet a particular backup Policy
listSELECTaccountName, resourceGroupName, subscriptionIdList backup policies for Netapp Account
createINSERTaccountName, backupPolicyName, resourceGroupName, subscriptionId, data__location, data__propertiesCreate a backup policy for Netapp Account
deleteDELETEaccountName, backupPolicyName, resourceGroupName, subscriptionIdDelete backup policy
updateUPDATEaccountName, backupPolicyName, resourceGroupName, subscriptionIdPatch a backup policy for Netapp Account

SELECT examples

List backup policies for Netapp Account

SELECT
accountName,
backupPolicyName,
backup_policy_id,
daily_backups_to_keep,
enabled,
etag,
location,
monthly_backups_to_keep,
provisioning_state,
resourceGroupName,
subscriptionId,
tags,
volume_backups,
volumes_assigned,
weekly_backups_to_keep
FROM azure_isv.netapp.vw_backup_policies
WHERE accountName = '{{ accountName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

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

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

UPDATE example

Updates a backup_policies resource.

/*+ update */
UPDATE azure_isv.netapp.backup_policies
SET
location = '{{ location }}',
tags = '{{ tags }}',
properties = '{{ properties }}'
WHERE
accountName = '{{ accountName }}'
AND backupPolicyName = '{{ backupPolicyName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

DELETE example

Deletes the specified backup_policies resource.

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