Skip to main content

backup_instances

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

Overview

Namebackup_instances
TypeResource
Idazure.data_protection.backup_instances

Fields

NameDatatypeDescription
idtextProxy Resource Id represents the complete path to the resource.
nametextProxy Resource name associated with the resource.
backupInstanceNametextfield from the properties object
current_protection_statetextfield from the properties object
data_source_infotextfield from the properties object
data_source_set_infotextfield from the properties object
datasource_auth_credentialstextfield from the properties object
friendly_nametextfield from the properties object
identity_detailstextfield from the properties object
object_typetextfield from the properties object
policy_infotextfield from the properties object
protection_error_detailstextfield from the properties object
protection_statustextfield from the properties object
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
resource_guard_operation_requeststextfield from the properties object
subscriptionIdtextfield from the properties object
system_datatextfield from the properties object
tagstextProxy Resource tags.
typetextProxy Resource type represents the complete path of the form Namespace/ResourceType/ResourceType/...
validation_typetextfield from the properties object
vaultNametextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTbackupInstanceName, resourceGroupName, subscriptionId, vaultNameGets a backup instance with name in a backup vault
listSELECTresourceGroupName, subscriptionId, vaultNameGets a backup instances belonging to a backup vault
create_or_updateINSERTbackupInstanceName, resourceGroupName, subscriptionId, vaultNameCreate or update a backup instance in a backup vault
deleteDELETEbackupInstanceName, resourceGroupName, subscriptionId, vaultNameDelete a backup instance in a backup vault
adhoc_backupEXECbackupInstanceName, resourceGroupName, subscriptionId, vaultName, data__backupRuleOptionsTrigger adhoc backup
resume_backupsEXECbackupInstanceName, resourceGroupName, subscriptionId, vaultNameThis operation will resume backups for backup instance
resume_protectionEXECbackupInstanceName, resourceGroupName, subscriptionId, vaultNameThis operation will resume protection for a stopped backup instance
stop_protectionEXECbackupInstanceName, resourceGroupName, subscriptionId, vaultNameThis operation will stop protection of a backup instance and data will be held forever
suspend_backupsEXECbackupInstanceName, resourceGroupName, subscriptionId, vaultNameThis operation will stop backup for a backup instance and retains the backup data as per the policy (except latest Recovery point, which will be retained forever)
sync_backup_instanceEXECbackupInstanceName, resourceGroupName, subscriptionId, vaultNameSync backup instance again in case of failure
This action will retry last failed operation and will bring backup instance to valid state
trigger_cross_region_restoreEXEClocation, resourceGroupName, subscriptionId, data__crossRegionRestoreDetails, data__restoreRequestObjectTriggers Cross Region Restore for BackupInstance.
trigger_rehydrateEXECbackupInstanceName, resourceGroupName, subscriptionId, vaultName, data__recoveryPointId, data__rehydrationRetentionDurationrehydrate recovery point for restore for a BackupInstance
trigger_restoreEXECbackupInstanceName, resourceGroupName, subscriptionId, vaultName, data__objectType, data__restoreTargetInfo, data__sourceDataStoreTypeTriggers restore for a BackupInstance
validate_cross_region_restoreEXEClocation, resourceGroupName, subscriptionId, data__crossRegionRestoreDetails, data__restoreRequestObjectValidates whether Cross Region Restore can be triggered for DataSource.
validate_for_backupEXECresourceGroupName, subscriptionId, vaultName, data__backupInstanceValidate whether adhoc backup will be successful or not
validate_for_restoreEXECbackupInstanceName, resourceGroupName, subscriptionId, vaultName, data__restoreRequestObjectValidates if Restore can be triggered for a DataSource

SELECT examples

Gets a backup instances belonging to a backup vault

SELECT
id,
name,
backupInstanceName,
current_protection_state,
data_source_info,
data_source_set_info,
datasource_auth_credentials,
friendly_name,
identity_details,
object_type,
policy_info,
protection_error_details,
protection_status,
provisioning_state,
resourceGroupName,
resource_guard_operation_requests,
subscriptionId,
system_data,
tags,
type,
validation_type,
vaultName
FROM azure.data_protection.vw_backup_instances
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND vaultName = '{{ vaultName }}';

INSERT example

Use the following StackQL query and manifest file to create a new backup_instances resource.

/*+ create */
INSERT INTO azure.data_protection.backup_instances (
backupInstanceName,
resourceGroupName,
subscriptionId,
vaultName,
tags,
systemData,
properties
)
SELECT
'{{ backupInstanceName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ vaultName }}',
'{{ tags }}',
'{{ systemData }}',
'{{ properties }}'
;

DELETE example

Deletes the specified backup_instances resource.

/*+ delete */
DELETE FROM azure.data_protection.backup_instances
WHERE backupInstanceName = '{{ backupInstanceName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND vaultName = '{{ vaultName }}';