你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
Protectable Containers - List
Lists the containers that can be registered to Recovery Services Vault.
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/protectableContainers?api-version=2024-04-01
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/protectableContainers?api-version=2024-04-01&$filter={$filter}
URI Parameters
Name | In | Required | Type | Description |
---|---|---|---|---|
fabric
|
path | True |
string |
|
resource
|
path | True |
string |
The name of the resource group where the recovery services vault is present. |
subscription
|
path | True |
string |
The subscription Id. |
vault
|
path | True |
string |
The name of the recovery services vault. |
api-version
|
query | True |
string |
Client Api Version. |
$filter
|
query |
string |
OData filter options. |
Responses
Name | Type | Description |
---|---|---|
200 OK |
OK |
|
Other Status Codes |
Error response describing why the operation failed. |
Security
azure_auth
Azure Active Directory OAuth2 Flow
Type:
oauth2
Flow:
implicit
Authorization URL:
https://login.microsoftonline.com/common/oauth2/authorize
Scopes
Name | Description |
---|---|
user_impersonation | impersonate your user account. |
Examples
List protectable items with backupManagementType filter as AzureStorage
Sample request
GET https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRg/providers/Microsoft.RecoveryServices/vaults/testvault/backupFabrics/Azure/protectableContainers?api-version=2024-04-01&$filter=backupManagementType eq 'AzureStorage' and workloadType eq 'AzureFileShare'
Sample response
{
"value": [
{
"id": "/Subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.RecoveryServices/vaults/testvault/backupFabrics/Azure/protectableContainers/StorageContainer;storage;test-rg;teststorage",
"name": "StorageContainer;storage;test-rg;testst",
"type": "Microsoft.RecoveryServices/vaults/backupFabrics/protectableContainers",
"properties": {
"friendlyName": "teststorage",
"backupManagementType": "AzureStorage",
"protectableContainerType": "StorageContainer",
"healthStatus": "Healthy",
"containerId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.Storage/storageAccounts/teststorage"
}
},
{
"id": "/Subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.RecoveryServices/vaults/testvault/backupFabrics/Azure/protectableContainers/StorageContainer;ClassicStorage;test-rg;teststorage",
"name": "StorageContainer;ClassicStorage;test-rg;teststorage",
"type": "Microsoft.RecoveryServices/vaults/backupFabrics/protectableContainers",
"properties": {
"friendlyName": "teststorage",
"backupManagementType": "AzureStorage",
"protectableContainerType": "StorageContainer",
"healthStatus": "Healthy",
"containerId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.ClassicStorage/storageAccounts/teststorage"
}
}
]
}
Definitions
Name | Description |
---|---|
Azure |
Azure Storage-specific protectable containers |
Azure |
Azure workload-specific container |
Backup |
Type of backup management for the backed up item. |
Cloud |
An error response from the Container Instance service. |
Cloud |
An error response from the Container Instance service. |
Error |
The resource management error additional info. |
Protectable |
Protectable Container Class. |
Protectable |
List of ProtectableContainer resources |
AzureStorageProtectableContainer
Azure Storage-specific protectable containers
Name | Type | Description |
---|---|---|
backupManagementType |
Type of backup management for the container. |
|
containerId |
string |
Fabric Id of the container such as ARM Id. |
friendlyName |
string |
Friendly name of the container. |
healthStatus |
string |
Status of health of the container. |
protectableContainerType |
string:
Storage |
Type of the container. The value of this property for
|
AzureVMAppContainerProtectableContainer
Azure workload-specific container
Name | Type | Description |
---|---|---|
backupManagementType |
Type of backup management for the container. |
|
containerId |
string |
Fabric Id of the container such as ARM Id. |
friendlyName |
string |
Friendly name of the container. |
healthStatus |
string |
Status of health of the container. |
protectableContainerType |
string:
VMApp |
Type of the container. The value of this property for
|
BackupManagementType
Type of backup management for the backed up item.
Name | Type | Description |
---|---|---|
AzureBackupServer |
string |
|
AzureIaasVM |
string |
|
AzureSql |
string |
|
AzureStorage |
string |
|
AzureWorkload |
string |
|
DPM |
string |
|
DefaultBackup |
string |
|
Invalid |
string |
|
MAB |
string |
CloudError
An error response from the Container Instance service.
Name | Type | Description |
---|---|---|
error |
The error object. |
CloudErrorBody
An error response from the Container Instance service.
Name | Type | Description |
---|---|---|
additionalInfo |
The error additional info. |
|
code |
string |
An identifier for the error. Codes are invariant and are intended to be consumed programmatically. |
details |
A list of additional details about the error. |
|
message |
string |
A message describing the error, intended to be suitable for display in a user interface. |
target |
string |
The target of the particular error. For example, the name of the property in error. |
ErrorAdditionalInfo
The resource management error additional info.
Name | Type | Description |
---|---|---|
info |
object |
The additional info. |
type |
string |
The additional info type. |
ProtectableContainerResource
Protectable Container Class.
Name | Type | Description |
---|---|---|
eTag |
string |
Optional ETag. |
id |
string |
Resource Id represents the complete path to the resource. |
location |
string |
Resource location. |
name |
string |
Resource name associated with the resource. |
properties | ProtectableContainer: |
ProtectableContainerResource properties |
tags |
object |
Resource tags. |
type |
string |
Resource type represents the complete path of the form Namespace/ResourceType/ResourceType/... |
ProtectableContainerResourceList
List of ProtectableContainer resources
Name | Type | Description |
---|---|---|
nextLink |
string |
The uri to fetch the next page of resources. Call ListNext() fetches next page of resources. |
value |
List of resources. |