Skip to main content

deleted_backup_instances

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

Overview

Namedeleted_backup_instances
TypeResource
Idazure.data_protection.deleted_backup_instances

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringFully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
namestringThe name of the resource.
currentProtectionStatestringSpecifies the current protection state of the resource. Known values are: "Invalid", "NotProtected", "ConfiguringProtection", "ProtectionConfigured", "BackupSchedulesSuspended", "RetentionSchedulesSuspended", "ProtectionStopped", "ProtectionError", "ConfiguringProtectionFailed", "SoftDeleting", "SoftDeleted", and "UpdatingProtection". (Invalid, NotProtected, ConfiguringProtection, ProtectionConfigured, BackupSchedulesSuspended, RetentionSchedulesSuspended, ProtectionStopped, ProtectionError, ConfiguringProtectionFailed, SoftDeleting, SoftDeleted, UpdatingProtection)
dataSourceInfoobjectGets or sets the data source information. Required.
dataSourceSetInfoobjectGets or sets the data source set information.
datasourceAuthCredentialsobjectCredentials to use to authenticate with data source provider.
deletionInfoobjectDeletion info of Backup Instance.
friendlyNamestringGets or sets the Backup Instance friendly name.
identityDetailsobjectContains information of the Identity Details for the BI. If it is null, default will be considered as System Assigned.
objectTypestringRequired.
policyInfoobjectGets or sets the policy information. Required.
protectionErrorDetailsobjectSpecifies the protection error of the resource.
protectionStatusobjectSpecifies the protection status of the resource.
provisioningStatestringSpecifies the provisioning state of the resource i.e. provisioning/updating/Succeeded/Failed.
resourceGuardOperationRequestsarrayResourceGuardOperationRequests on which LAC check will be performed.
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".
validationTypestringSpecifies the type of validation. In case of DeepValidation, all validations from /validateForBackup API will run again. Known values are: "ShallowValidation" and "DeepValidation". (ShallowValidation, DeepValidation)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresource_group_name, vault_name, backup_instance_name, subscription_idGets a deleted backup instance with name in a backup vault.
listselectresource_group_name, vault_name, subscription_idGets deleted backup instances belonging to a backup vault.
undeleteexecresource_group_name, vault_name, backup_instance_name, subscription_idA long-running resource action.

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
backup_instance_namestringThe name of the deleted backup instance. Required.
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
subscription_idstring
vault_namestringThe name of the backup vault. Required.

SELECT examples

Gets a deleted backup instance with name in a backup vault.

SELECT
id,
name,
currentProtectionState,
dataSourceInfo,
dataSourceSetInfo,
datasourceAuthCredentials,
deletionInfo,
friendlyName,
identityDetails,
objectType,
policyInfo,
protectionErrorDetails,
protectionStatus,
provisioningState,
resourceGuardOperationRequests,
systemData,
type,
validationType
FROM azure.data_protection.deleted_backup_instances
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND vault_name = '{{ vault_name }}' -- required
AND backup_instance_name = '{{ backup_instance_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

Lifecycle Methods

A long-running resource action.

EXEC azure.data_protection.deleted_backup_instances.undelete 
@resource_group_name='{{ resource_group_name }}' --required,
@vault_name='{{ vault_name }}' --required,
@backup_instance_name='{{ backup_instance_name }}' --required,
@subscription_id='{{ subscription_id }}' --required
;