Skip to main content

protected_items

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

Overview

Nameprotected_items
TypeResource
Idazure.recovery_services_backup.protected_items

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.
backupManagementTypestringType of backup management for the backed up item. Known values are: "Invalid", "AzureIaasVM", "MAB", "DPM", "AzureBackupServer", "AzureSql", "AzureStorage", "AzureWorkload", and "DefaultBackup". (Invalid, AzureIaasVM, MAB, DPM, AzureBackupServer, AzureSql, AzureStorage, AzureWorkload, DefaultBackup)
backupSetNamestringName of the backup set the backup item belongs to.
containerNamestringUnique name of container.
createModestringCreate mode to indicate recovery of existing soft deleted data source or creation of new data source. Known values are: "Invalid", "Default", and "Recover". (Invalid, Default, Recover)
deferredDeleteTimeInUTCstring (date-time)Time for deferred deletion in UTC.
deferredDeleteTimeRemainingstringTime remaining before the DS marked for deferred delete is permanently deleted.
eTagstringOptional ETag.
isArchiveEnabledbooleanFlag to identify whether datasource is protected in archive.
isDeferredDeleteScheduleUpcomingbooleanFlag to identify whether the deferred deleted DS is to be purged soon.
isRehydratebooleanFlag to identify that deferred deleted DS is to be moved into Pause state.
isScheduledForDeferredDeletebooleanFlag to identify whether the DS is scheduled for deferred delete.
lastRecoveryPointstring (date-time)Timestamp when the last (latest) backup copy was created for this backup item.
locationstringThe geo-location where the resource lives.
policyIdstringID of the backup policy with which this item is backed up.
policyNamestringName of the policy used for protection.
protectedItemTypestringbackup item type. Required. Default value is None.
resourceGuardOperationRequestsarrayResourceGuardOperationRequests on which LAC check will be performed.
softDeleteRetentionPeriodInDaysintegerSoft delete retention period in days.
sourceResourceIdstringARM ID of the resource to be backed up.
sourceSideScanInfoobjectSource side threat information.
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
tagsobjectResource tags.
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".
vaultIdstringID of the vault which protects this item.
workloadTypestringType of workload this item represents. Known values are: "Invalid", "VM", "FileFolder", "AzureSqlDb", "SQLDB", "Exchange", "Sharepoint", "VMwareVM", "SystemState", "Client", "GenericDataSource", "SQLDataBase", "AzureFileShare", "SAPHanaDatabase", "SAPAseDatabase", and "SAPHanaDBInstance". (Invalid, VM, FileFolder, AzureSqlDb, SQLDB, Exchange, Sharepoint, VMwareVM, SystemState, Client, GenericDataSource, SQLDataBase, AzureFileShare, SAPHanaDatabase, SAPAseDatabase, SAPHanaDBInstance)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectvault_name, resource_group_name, fabric_name, container_name, protected_item_name, subscription_id$filterProvides the details of the backed up item. This is an asynchronous operation. To know the status of the operation, call the GetItemOperationResult API.
create_or_updateinsertvault_name, resource_group_name, fabric_name, container_name, protected_item_name, subscription_idx-ms-authorization-auxiliaryEnables backup of an item or to modifies the backup policy information of an already backed up item. This is an asynchronous operation. To know the status of the operation, call the GetItemOperationResult API.
create_or_updatereplacevault_name, resource_group_name, fabric_name, container_name, protected_item_name, subscription_idx-ms-authorization-auxiliaryEnables backup of an item or to modifies the backup policy information of an already backed up item. This is an asynchronous operation. To know the status of the operation, call the GetItemOperationResult API.
deletedeletevault_name, resource_group_name, fabric_name, container_name, protected_item_name, subscription_idUsed to disable backup of an item within a container. This is an asynchronous operation. To know the status of the request, call the GetItemOperationResult API.

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
container_namestringName of the container whose details need to be fetched. Required.
fabric_namestringThe name of the BackupFabricResource. Required.
protected_item_namestringBacked up item name whose details are to be fetched. Required.
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
subscription_idstring
vault_namestringThe name of the VaultResource. Required.
$filterstringOData filter options. Default value is None.
x-ms-authorization-auxiliarystringDefault value is None.

SELECT examples

Provides the details of the backed up item. This is an asynchronous operation. To know the status of the operation, call the GetItemOperationResult API.

SELECT
id,
name,
backupManagementType,
backupSetName,
containerName,
createMode,
deferredDeleteTimeInUTC,
deferredDeleteTimeRemaining,
eTag,
isArchiveEnabled,
isDeferredDeleteScheduleUpcoming,
isRehydrate,
isScheduledForDeferredDelete,
lastRecoveryPoint,
location,
policyId,
policyName,
protectedItemType,
resourceGuardOperationRequests,
softDeleteRetentionPeriodInDays,
sourceResourceId,
sourceSideScanInfo,
systemData,
tags,
type,
vaultId,
workloadType
FROM azure.recovery_services_backup.protected_items
WHERE vault_name = '{{ vault_name }}' -- required
AND resource_group_name = '{{ resource_group_name }}' -- required
AND fabric_name = '{{ fabric_name }}' -- required
AND container_name = '{{ container_name }}' -- required
AND protected_item_name = '{{ protected_item_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
AND $filter = '{{ $filter }}'
;

INSERT examples

Enables backup of an item or to modifies the backup policy information of an already backed up item. This is an asynchronous operation. To know the status of the operation, call the GetItemOperationResult API.

INSERT INTO azure.recovery_services_backup.protected_items (
properties,
tags,
location,
eTag,
vault_name,
resource_group_name,
fabric_name,
container_name,
protected_item_name,
subscription_id,
x-ms-authorization-auxiliary
)
SELECT
'{{ properties }}',
'{{ tags }}',
'{{ location }}',
'{{ eTag }}',
'{{ vault_name }}',
'{{ resource_group_name }}',
'{{ fabric_name }}',
'{{ container_name }}',
'{{ protected_item_name }}',
'{{ subscription_id }}',
'{{ x-ms-authorization-auxiliary }}'
RETURNING
id,
name,
eTag,
location,
properties,
systemData,
tags,
type
;

REPLACE examples

Enables backup of an item or to modifies the backup policy information of an already backed up item. This is an asynchronous operation. To know the status of the operation, call the GetItemOperationResult API.

REPLACE azure.recovery_services_backup.protected_items
SET
properties = '{{ properties }}',
tags = '{{ tags }}',
location = '{{ location }}',
eTag = '{{ eTag }}'
WHERE
vault_name = '{{ vault_name }}' --required
AND resource_group_name = '{{ resource_group_name }}' --required
AND fabric_name = '{{ fabric_name }}' --required
AND container_name = '{{ container_name }}' --required
AND protected_item_name = '{{ protected_item_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
AND x-ms-authorization-auxiliary = '{{ x-ms-authorization-auxiliary}}'
RETURNING
id,
name,
eTag,
location,
properties,
systemData,
tags,
type;

DELETE examples

Used to disable backup of an item within a container. This is an asynchronous operation. To know the status of the request, call the GetItemOperationResult API.

DELETE FROM azure.recovery_services_backup.protected_items
WHERE vault_name = '{{ vault_name }}' --required
AND resource_group_name = '{{ resource_group_name }}' --required
AND fabric_name = '{{ fabric_name }}' --required
AND container_name = '{{ container_name }}' --required
AND protected_item_name = '{{ protected_item_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;