Skip to main content

backup_schedules

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

Overview

Namebackup_schedules
TypeResource
Idazure_extras.storsimple_8000_series.backup_schedules

Fields

NameDatatypeDescription
idtextThe path ID that uniquely identifies the object.
nametextThe name of the object.
backupPolicyNametextfield from the properties object
backupScheduleNametextfield from the properties object
backup_typetextfield from the properties object
deviceNametextfield from the properties object
kindtextThe Kind of the object. Currently only Series8000 is supported
last_successful_runtextfield from the properties object
managerNametextfield from the properties object
resourceGroupNametextfield from the properties object
retention_counttextfield from the properties object
schedule_recurrencetextfield from the properties object
schedule_statustextfield from the properties object
start_timetextfield from the properties object
subscriptionIdtextfield from the properties object
typetextThe hierarchical type of the object.

Methods

NameAccessible byRequired ParamsDescription
getSELECTbackupPolicyName, backupScheduleName, deviceName, managerName, resourceGroupName, subscriptionIdGets the properties of the specified backup schedule name.
list_by_backup_policySELECTbackupPolicyName, deviceName, managerName, resourceGroupName, subscriptionIdGets all the backup schedules in a backup policy.
create_or_updateINSERTbackupPolicyName, backupScheduleName, deviceName, managerName, resourceGroupName, subscriptionId, data__propertiesCreates or updates the backup schedule.
deleteDELETEbackupPolicyName, backupScheduleName, deviceName, managerName, resourceGroupName, subscriptionIdDeletes the backup schedule.

SELECT examples

Gets all the backup schedules in a backup policy.

SELECT
id,
name,
backupPolicyName,
backupScheduleName,
backup_type,
deviceName,
kind,
last_successful_run,
managerName,
resourceGroupName,
retention_count,
schedule_recurrence,
schedule_status,
start_time,
subscriptionId,
type
FROM azure_extras.storsimple_8000_series.vw_backup_schedules
WHERE backupPolicyName = '{{ backupPolicyName }}'
AND 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_schedules resource.

/*+ create */
INSERT INTO azure_extras.storsimple_8000_series.backup_schedules (
backupPolicyName,
backupScheduleName,
deviceName,
managerName,
resourceGroupName,
subscriptionId,
data__properties,
kind,
properties
)
SELECT
'{{ backupPolicyName }}',
'{{ backupScheduleName }}',
'{{ deviceName }}',
'{{ managerName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ data__properties }}',
'{{ kind }}',
'{{ properties }}'
;

DELETE example

Deletes the specified backup_schedules resource.

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