Skip to main content

backup_policies

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

Overview

Namebackup_policies
TypeResource
Idazure_extras.storsimple_8000_series.backup_policies

Fields

NameDatatypeDescription
idtextThe path ID that uniquely identifies the object.
nametextThe name of the object.
backupPolicyNametextfield from the properties object
backup_policy_creation_typetextfield from the properties object
deviceNametextfield from the properties object
kindtextThe Kind of the object. Currently only Series8000 is supported
last_backup_timetextfield from the properties object
managerNametextfield from the properties object
next_backup_timetextfield from the properties object
resourceGroupNametextfield from the properties object
scheduled_backup_statustextfield from the properties object
schedules_counttextfield from the properties object
ssm_host_nametextfield from the properties object
subscriptionIdtextfield from the properties object
typetextThe hierarchical type of the object.
volume_idstextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTbackupPolicyName, deviceName, managerName, resourceGroupName, subscriptionIdGets the properties of the specified backup policy name.
list_by_deviceSELECTdeviceName, managerName, resourceGroupName, subscriptionIdGets all the backup policies in a device.
create_or_updateINSERTbackupPolicyName, deviceName, managerName, resourceGroupName, subscriptionId, data__propertiesCreates or updates the backup policy.
deleteDELETEbackupPolicyName, deviceName, managerName, resourceGroupName, subscriptionIdDeletes the backup policy.
backup_nowEXECbackupPolicyName, backupType, deviceName, managerName, resourceGroupName, subscriptionIdBackup the backup policy now.

SELECT examples

Gets all the backup policies in a device.

SELECT
id,
name,
backupPolicyName,
backup_policy_creation_type,
deviceName,
kind,
last_backup_time,
managerName,
next_backup_time,
resourceGroupName,
scheduled_backup_status,
schedules_count,
ssm_host_name,
subscriptionId,
type,
volume_ids
FROM azure_extras.storsimple_8000_series.vw_backup_policies
WHERE deviceName = '{{ deviceName }}'
AND managerName = '{{ managerName }}'
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_extras.storsimple_8000_series.backup_policies (
backupPolicyName,
deviceName,
managerName,
resourceGroupName,
subscriptionId,
data__properties,
kind,
properties
)
SELECT
'{{ backupPolicyName }}',
'{{ deviceName }}',
'{{ managerName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ data__properties }}',
'{{ kind }}',
'{{ properties }}'
;

DELETE example

Deletes the specified backup_policies resource.

/*+ delete */
DELETE FROM azure_extras.storsimple_8000_series.backup_policies
WHERE backupPolicyName = '{{ backupPolicyName }}'
AND deviceName = '{{ deviceName }}'
AND managerName = '{{ managerName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';