protection_containers
Creates, updates, deletes, gets or lists a protection_containers
resource.
Overview
Name | protection_containers |
Type | Resource |
Id | azure.recovery_services_backup.protection_containers |
Fields
- vw_protection_containers
- protection_containers
Name | Datatype | Description |
---|---|---|
id | text | Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} |
name | text | The name of the resource |
backup_management_type | text | field from the properties object |
containerName | text | field from the properties object |
container_type | text | field from the properties object |
fabricName | text | field from the properties object |
friendly_name | text | field from the properties object |
health_status | text | field from the properties object |
protectable_object_type | text | field from the properties object |
registration_status | text | field from the properties object |
resourceGroupName | text | field from the properties object |
subscriptionId | text | field from the properties object |
type | text | The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" |
vaultName | text | field from the properties object |
Name | Datatype | Description |
---|---|---|
id | string | Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} |
name | string | The name of the resource |
properties | object | Base class for container with backup items. Containers with specific workloads are derived from this class. |
type | string | The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | containerName, fabricName, resourceGroupName, subscriptionId, vaultName | Gets details of the specific container registered to your Recovery Services Vault. |
inquire | EXEC | containerName, fabricName, resourceGroupName, subscriptionId, vaultName | This is an async operation and the results should be tracked using location header or Azure-async-url. |
refresh | EXEC | fabricName, resourceGroupName, subscriptionId, vaultName | Discovers 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. | |||
register | EXEC | containerName, fabricName, resourceGroupName, subscriptionId, vaultName | 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. |
| 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.
- vw_protection_containers
- protection_containers
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 }}';
SELECT
id,
name,
properties,
type
FROM azure.recovery_services_backup.protection_containers
WHERE containerName = '{{ containerName }}'
AND fabricName = '{{ fabricName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND vaultName = '{{ vaultName }}';