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

The following fields are returned by SELECT queries:

The backup policy.

NameDatatypeDescription
idstringThe path ID that uniquely identifies the object.
namestringThe name of the object.
kindstringThe Kind of the object. Currently only Series8000 is supported
propertiesobjectThe properties of the backup policy.
typestringThe hierarchical type of the object.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectdeviceName, backupPolicyName, subscriptionId, resourceGroupName, managerNameGets the properties of the specified backup policy name.
list_by_deviceselectdeviceName, subscriptionId, resourceGroupName, managerNameGets all the backup policies in a device.
create_or_updateinsertdeviceName, backupPolicyName, subscriptionId, resourceGroupName, managerName, data__propertiesCreates or updates the backup policy.
deletedeletedeviceName, backupPolicyName, subscriptionId, resourceGroupName, managerNameDeletes the backup policy.
backup_nowexecdeviceName, backupPolicyName, backupType, subscriptionId, resourceGroupName, managerNameBackup the backup policy now.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
backupPolicyNamestringThe backup policy name.
backupTypestringThe backup Type. This can be cloudSnapshot or localSnapshot.
deviceNamestringThe device name
managerNamestringThe manager name
resourceGroupNamestringThe resource group name
subscriptionIdstringThe subscription id

SELECT examples

Gets the properties of the specified backup policy name.

SELECT
id,
name,
kind,
properties,
type
FROM azure_extras.storsimple_8000_series.backup_policies
WHERE deviceName = '{{ deviceName }}' -- required
AND backupPolicyName = '{{ backupPolicyName }}' -- required
AND subscriptionId = '{{ subscriptionId }}' -- required
AND resourceGroupName = '{{ resourceGroupName }}' -- required
AND managerName = '{{ managerName }}' -- required
;

INSERT examples

Creates or updates the backup policy.

INSERT INTO azure_extras.storsimple_8000_series.backup_policies (
data__kind,
data__properties,
deviceName,
backupPolicyName,
subscriptionId,
resourceGroupName,
managerName
)
SELECT
'{{ kind }}',
'{{ properties }}' /* required */,
'{{ deviceName }}',
'{{ backupPolicyName }}',
'{{ subscriptionId }}',
'{{ resourceGroupName }}',
'{{ managerName }}'
RETURNING
id,
name,
kind,
properties,
type
;

DELETE examples

Deletes the backup policy.

DELETE FROM azure_extras.storsimple_8000_series.backup_policies
WHERE deviceName = '{{ deviceName }}' --required
AND backupPolicyName = '{{ backupPolicyName }}' --required
AND subscriptionId = '{{ subscriptionId }}' --required
AND resourceGroupName = '{{ resourceGroupName }}' --required
AND managerName = '{{ managerName }}' --required
;

Lifecycle Methods

Backup the backup policy now.

EXEC azure_extras.storsimple_8000_series.backup_policies.backup_now 
@deviceName='{{ deviceName }}' --required,
@backupPolicyName='{{ backupPolicyName }}' --required,
@backupType='{{ backupType }}' --required,
@subscriptionId='{{ subscriptionId }}' --required,
@resourceGroupName='{{ resourceGroupName }}' --required,
@managerName='{{ managerName }}' --required
;