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

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
containerNametextfield from the properties object
container_typetextfield from the properties object
fabricNametextfield from the properties object
friendly_nametextfield from the properties object
health_statustextfield from the properties object
protectable_object_typetextfield from the properties object
registration_statustextfield from the properties object
resourceGroupNametextfield 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

Methods

NameAccessible byRequired ParamsDescription
getSELECTcontainerName, fabricName, resourceGroupName, subscriptionId, vaultNameGets details of the specific container registered to your Recovery Services Vault.
inquireEXECcontainerName, fabricName, resourceGroupName, subscriptionId, vaultNameThis is an async operation and the results should be tracked using location header or Azure-async-url.
refreshEXECfabricName, resourceGroupName, subscriptionId, vaultNameDiscovers 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.
registerEXECcontainerName, fabricName, resourceGroupName, subscriptionId, vaultNameRegisters 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. | | unregister | EXEC | containerName, fabricName, resourceGroupName, subscriptionId, vaultName | Unregisters 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. |

SELECT examples

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

SELECT
id,
name,
backup_management_type,
containerName,
container_type,
fabricName,
friendly_name,
health_status,
protectable_object_type,
registration_status,
resourceGroupName,
subscriptionId,
type,
vaultName
FROM azure.recovery_services_backup.vw_protection_containers
WHERE containerName = '{{ containerName }}'
AND fabricName = '{{ fabricName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND vaultName = '{{ vaultName }}';