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
propertiesobjectProtectedItemResource properties
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectvaultName, resourceGroupName, subscriptionId, fabricName, containerName, protectedItemNameapi-version, $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_updateinsertvaultName, resourceGroupName, subscriptionId, fabricName, containerName, protectedItemNameapi-version, x-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.
deletedeletevaultName, resourceGroupName, subscriptionId, fabricName, containerName, protectedItemNameapi-versionUsed 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
containerNamestringContainer name associated with the backed up item.
fabricNamestringFabric name associated with the backed up item.
protectedItemNamestringBacked up item to be deleted.
resourceGroupNamestringThe name of the resource group where the recovery services vault is present.
subscriptionIdstringThe subscription Id.
vaultNamestringThe name of the recovery services vault.
$filterstringOData filter options.
api-versionstringClient Api Version.
x-ms-authorization-auxiliarystring

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,
properties,
type
FROM azure.recovery_services_backup.protected_items
WHERE vaultName = '{{ vaultName }}' -- required
AND resourceGroupName = '{{ resourceGroupName }}' -- required
AND subscriptionId = '{{ subscriptionId }}' -- required
AND fabricName = '{{ fabricName }}' -- required
AND containerName = '{{ containerName }}' -- required
AND protectedItemName = '{{ protectedItemName }}' -- required
AND api-version = '{{ api-version }}'
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 (
data__properties,
vaultName,
resourceGroupName,
subscriptionId,
fabricName,
containerName,
protectedItemName,
api-version,
x-ms-authorization-auxiliary
)
SELECT
'{{ properties }}',
'{{ vaultName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ fabricName }}',
'{{ containerName }}',
'{{ protectedItemName }}',
'{{ api-version }}',
'{{ x-ms-authorization-auxiliary }}'
RETURNING
id,
name,
properties,
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 vaultName = '{{ vaultName }}' --required
AND resourceGroupName = '{{ resourceGroupName }}' --required
AND subscriptionId = '{{ subscriptionId }}' --required
AND fabricName = '{{ fabricName }}' --required
AND containerName = '{{ containerName }}' --required
AND protectedItemName = '{{ protectedItemName }}' --required
AND api-version = '{{ api-version }}'
;