backup_schedules
Creates, updates, deletes, gets or lists a backup_schedules
resource.
Overview
Name | backup_schedules |
Type | Resource |
Id | azure_extras.storsimple_8000_series.backup_schedules |
Fields
- vw_backup_schedules
- backup_schedules
Name | Datatype | Description |
---|---|---|
id | text | The path ID that uniquely identifies the object. |
name | text | The name of the object. |
backupPolicyName | text | field from the properties object |
backupScheduleName | text | field from the properties object |
backup_type | text | field from the properties object |
deviceName | text | field from the properties object |
kind | text | The Kind of the object. Currently only Series8000 is supported |
last_successful_run | text | field from the properties object |
managerName | text | field from the properties object |
resourceGroupName | text | field from the properties object |
retention_count | text | field from the properties object |
schedule_recurrence | text | field from the properties object |
schedule_status | text | field from the properties object |
start_time | text | field from the properties object |
subscriptionId | text | field from the properties object |
type | text | The hierarchical type of the object. |
Name | Datatype | Description |
---|---|---|
id | string | The path ID that uniquely identifies the object. |
name | string | The name of the object. |
kind | string | The Kind of the object. Currently only Series8000 is supported |
properties | object | The properties of the backup schedule. |
type | string | The hierarchical type of the object. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | backupPolicyName, backupScheduleName, deviceName, managerName, resourceGroupName, subscriptionId | Gets the properties of the specified backup schedule name. |
list_by_backup_policy | SELECT | backupPolicyName, deviceName, managerName, resourceGroupName, subscriptionId | Gets all the backup schedules in a backup policy. |
create_or_update | INSERT | backupPolicyName, backupScheduleName, deviceName, managerName, resourceGroupName, subscriptionId, data__properties | Creates or updates the backup schedule. |
delete | DELETE | backupPolicyName, backupScheduleName, deviceName, managerName, resourceGroupName, subscriptionId | Deletes the backup schedule. |
SELECT
examples
Gets all the backup schedules in a backup policy.
- vw_backup_schedules
- backup_schedules
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 }}';
SELECT
id,
name,
kind,
properties,
type
FROM azure_extras.storsimple_8000_series.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.
- All Properties
- Manifest
/*+ 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 }}'
;
- name: your_resource_model_name
props:
- name: id
value: string
- name: name
value: string
- name: type
value: string
- name: kind
value: string
- name: properties
value:
- name: scheduleRecurrence
value:
- name: recurrenceType
value: string
- name: recurrenceValue
value: integer
- name: weeklyDaysList
value:
- string
- name: backupType
value: string
- name: retentionCount
value: integer
- name: startTime
value: string
- name: scheduleStatus
value: string
- name: lastSuccessfulRun
value: string
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 }}';