backup_policies
Creates, updates, deletes, gets or lists a backup_policies
resource.
Overview
Name | backup_policies |
Type | Resource |
Id | azure_isv.netapp.backup_policies |
Fields
- vw_backup_policies
- backup_policies
Name | Datatype | Description |
---|---|---|
accountName | text | field from the properties object |
backupPolicyName | text | field from the properties object |
backup_policy_id | text | field from the properties object |
daily_backups_to_keep | text | field from the properties object |
enabled | text | field from the properties object |
etag | text | A unique read-only string that changes whenever the resource is updated. |
location | text | The geo-location where the resource lives |
monthly_backups_to_keep | text | field from the properties object |
provisioning_state | text | field from the properties object |
resourceGroupName | text | field from the properties object |
subscriptionId | text | field from the properties object |
tags | text | Resource tags. |
volume_backups | text | field from the properties object |
volumes_assigned | text | field from the properties object |
weekly_backups_to_keep | text | field from the properties object |
Name | Datatype | Description |
---|---|---|
etag | string | A unique read-only string that changes whenever the resource is updated. |
location | string | The geo-location where the resource lives |
properties | object | Backup policy properties |
tags | object | Resource tags. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | accountName, backupPolicyName, resourceGroupName, subscriptionId | Get a particular backup Policy |
list | SELECT | accountName, resourceGroupName, subscriptionId | List backup policies for Netapp Account |
create | INSERT | accountName, backupPolicyName, resourceGroupName, subscriptionId, data__location, data__properties | Create a backup policy for Netapp Account |
delete | DELETE | accountName, backupPolicyName, resourceGroupName, subscriptionId | Delete backup policy |
update | UPDATE | accountName, backupPolicyName, resourceGroupName, subscriptionId | Patch a backup policy for Netapp Account |
SELECT
examples
List backup policies for Netapp Account
- vw_backup_policies
- backup_policies
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 }}';
SELECT
etag,
location,
properties,
tags
FROM azure_isv.netapp.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.
- All Properties
- Manifest
/*+ 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 }}'
;
- name: your_resource_model_name
props:
- name: tags
value: object
- name: location
value: string
- name: etag
value: string
- name: properties
value:
- name: backupPolicyId
value: string
- name: provisioningState
value: string
- name: dailyBackupsToKeep
value: integer
- name: weeklyBackupsToKeep
value: integer
- name: monthlyBackupsToKeep
value: integer
- name: volumesAssigned
value: integer
- name: enabled
value: boolean
- name: volumeBackups
value:
- - name: volumeName
value: string
- name: volumeResourceId
value: string
- name: backupsCount
value: integer
- name: policyEnabled
value: boolean
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 }}';