Skip to main content

protection_containers

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

Overview

Nameprotection_containers
TypeResource
Idazure.recovery_services_backup.protection_containers

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
propertiesobjectProtectionContainerResource 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, containerNameapi-versionGets details of the specific container registered to your Recovery Services Vault.
registerexecvaultName, resourceGroupName, subscriptionId, fabricName, containerNameapi-versionRegisters the container with Recovery Services vault.
This is an asynchronous operation. To track the operation status, use location header to call get latest status of
the operation.
unregisterexecvaultName, resourceGroupName, subscriptionId, fabricName, containerNameapi-versionUnregisters the given container from your Recovery Services Vault. This is an asynchronous operation. To determine
whether the backend service has finished processing the request, call Get Container Operation Result API.
inquireexecvaultName, resourceGroupName, subscriptionId, fabricName, containerNameapi-version, $filterThis is an async operation and the results should be tracked using location header or Azure-async-url.
refreshexecvaultName, resourceGroupName, subscriptionId, fabricNameapi-version, $filterDiscovers all the containers in the subscription that can be backed up to Recovery Services Vault. This is an
asynchronous operation. To know the status of the operation, call GetRefreshOperationResult 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
containerNamestringName of the container in which inquiry needs to be triggered.
fabricNamestringFabric name associated the container.
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.

SELECT examples

Gets details of the specific container registered to your Recovery Services Vault.

SELECT
id,
name,
properties,
type
FROM azure.recovery_services_backup.protection_containers
WHERE vaultName = '{{ vaultName }}' -- required
AND resourceGroupName = '{{ resourceGroupName }}' -- required
AND subscriptionId = '{{ subscriptionId }}' -- required
AND fabricName = '{{ fabricName }}' -- required
AND containerName = '{{ containerName }}' -- required
AND api-version = '{{ api-version }}'
;

Lifecycle Methods

Registers the container with Recovery Services vault.
This is an asynchronous operation. To track the operation status, use location header to call get latest status of
the operation.

EXEC azure.recovery_services_backup.protection_containers.register 
@vaultName='{{ vaultName }}' --required,
@resourceGroupName='{{ resourceGroupName }}' --required,
@subscriptionId='{{ subscriptionId }}' --required,
@fabricName='{{ fabricName }}' --required,
@containerName='{{ containerName }}' --required,
@api-version='{{ api-version }}'
@@json=
'{
"properties": "{{ properties }}"
}'
;