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

NameDatatypeDescription
idtextFully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
nametextThe name of the resource
backup_management_typetextfield from the properties object
backup_set_nametextfield from the properties object
containerNametextfield from the properties object
container_nametextfield from the properties object
create_modetextfield from the properties object
deferred_delete_time_in_utctextfield from the properties object
deferred_delete_time_remainingtextfield from the properties object
fabricNametextfield from the properties object
is_archive_enabledtextfield from the properties object
is_deferred_delete_schedule_upcomingtextfield from the properties object
is_rehydratetextfield from the properties object
is_scheduled_for_deferred_deletetextfield from the properties object
last_recovery_pointtextfield from the properties object
policy_idtextfield from the properties object
policy_nametextfield from the properties object
protectedItemNametextfield from the properties object
protected_item_typetextfield from the properties object
resourceGroupNametextfield from the properties object
resource_guard_operation_requeststextfield from the properties object
soft_delete_retention_period_in_daystextfield from the properties object
source_resource_idtextfield from the properties object
subscriptionIdtextfield from the properties object
typetextThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
vaultNametextfield from the properties object
vault_idtextfield from the properties object
workload_typetextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTcontainerName, fabricName, protectedItemName, resourceGroupName, subscriptionId, vaultNameProvides 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_updateINSERTcontainerName, fabricName, protectedItemName, resourceGroupName, subscriptionId, vaultNameEnables 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.
deleteDELETEcontainerName, fabricName, protectedItemName, resourceGroupName, subscriptionId, vaultNameUsed 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.

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,
backup_management_type,
backup_set_name,
containerName,
container_name,
create_mode,
deferred_delete_time_in_utc,
deferred_delete_time_remaining,
fabricName,
is_archive_enabled,
is_deferred_delete_schedule_upcoming,
is_rehydrate,
is_scheduled_for_deferred_delete,
last_recovery_point,
policy_id,
policy_name,
protectedItemName,
protected_item_type,
resourceGroupName,
resource_guard_operation_requests,
soft_delete_retention_period_in_days,
source_resource_id,
subscriptionId,
type,
vaultName,
vault_id,
workload_type
FROM azure.recovery_services_backup.vw_protected_items
WHERE containerName = '{{ containerName }}'
AND fabricName = '{{ fabricName }}'
AND protectedItemName = '{{ protectedItemName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND vaultName = '{{ vaultName }}';

INSERT example

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

/*+ create */
INSERT INTO azure.recovery_services_backup.protected_items (
containerName,
fabricName,
protectedItemName,
resourceGroupName,
subscriptionId,
vaultName,
properties
)
SELECT
'{{ containerName }}',
'{{ fabricName }}',
'{{ protectedItemName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ vaultName }}',
'{{ properties }}'
;

DELETE example

Deletes the specified protected_items resource.

/*+ delete */
DELETE FROM azure.recovery_services_backup.protected_items
WHERE containerName = '{{ containerName }}'
AND fabricName = '{{ fabricName }}'
AND protectedItemName = '{{ protectedItemName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND vaultName = '{{ vaultName }}';