backup_policies
Creates, updates, deletes, gets or lists a backup_policies
resource.
Overview
Name | backup_policies |
Type | Resource |
Id | azure_extras.storsimple_8000_series.backup_policies |
Fields
- vw_backup_policies
- backup_policies
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 |
backup_policy_creation_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_backup_time | text | field from the properties object |
managerName | text | field from the properties object |
next_backup_time | text | field from the properties object |
resourceGroupName | text | field from the properties object |
scheduled_backup_status | text | field from the properties object |
schedules_count | text | field from the properties object |
ssm_host_name | text | field from the properties object |
subscriptionId | text | field from the properties object |
type | text | The hierarchical type of the object. |
volume_ids | text | field from the properties 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 policy. |
type | string | The hierarchical type of the object. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | backupPolicyName, deviceName, managerName, resourceGroupName, subscriptionId | Gets the properties of the specified backup policy name. |
list_by_device | SELECT | deviceName, managerName, resourceGroupName, subscriptionId | Gets all the backup policies in a device. |
create_or_update | INSERT | backupPolicyName, deviceName, managerName, resourceGroupName, subscriptionId, data__properties | Creates or updates the backup policy. |
delete | DELETE | backupPolicyName, deviceName, managerName, resourceGroupName, subscriptionId | Deletes the backup policy. |
backup_now | EXEC | backupPolicyName, backupType, deviceName, managerName, resourceGroupName, subscriptionId | Backup the backup policy now. |
SELECT
examples
Gets all the backup policies in a device.
- vw_backup_policies
- backup_policies
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 }}';
SELECT
id,
name,
kind,
properties,
type
FROM azure_extras.storsimple_8000_series.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.
- All Properties
- Manifest
/*+ 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 }}'
;
- 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: volumeIds
value:
- string
- name: nextBackupTime
value: string
- name: lastBackupTime
value: string
- name: schedulesCount
value: integer
- name: scheduledBackupStatus
value: string
- name: backupPolicyCreationType
value: string
- name: ssmHostName
value: string
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 }}';