Protectable Containers - List
列出可注册到恢复服务保管库的容器。
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/protectableContainers?api-version=2025-08-01
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/protectableContainers?api-version=2025-08-01&$filter={$filter}
URI 参数
| 名称 | 在 | 必需 | 类型 | 说明 |
|---|---|---|---|---|
|
fabric
|
path | True |
string |
|
|
resource
|
path | True |
string minLength: 1maxLength: 90 |
资源组的名称。 此名称不区分大小写。 |
|
subscription
|
path | True |
string minLength: 1 |
目标订阅的 ID。 |
|
vault
|
path | True |
string |
恢复服务保管库的名称。 |
|
api-version
|
query | True |
string minLength: 1 |
要用于此操作的 API 版本。 |
|
$filter
|
query |
string |
OData 筛选器选项。 |
响应
| 名称 | 类型 | 说明 |
|---|---|---|
| 200 OK |
Azure作已成功完成。 |
|
| Other Status Codes |
意外的错误响应。 |
安全性
azure_auth
Azure Active Directory OAuth2 Flow。
类型:
oauth2
流向:
implicit
授权 URL:
https://login.microsoftonline.com/common/oauth2/authorize
作用域
| 名称 | 说明 |
|---|---|
| user_impersonation | 模拟用户帐户 |
示例
List protectable items with backupManagementType filter as AzureStorage
示例请求
GET https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRg/providers/Microsoft.RecoveryServices/vaults/testvault/backupFabrics/Azure/protectableContainers?api-version=2025-08-01&$filter=backupManagementType eq 'AzureStorage' and workloadType eq 'AzureFileShare'
示例响应
{
"value": [
{
"name": "StorageContainer;storage;test-rg;testst",
"type": "Microsoft.RecoveryServices/vaults/backupFabrics/protectableContainers",
"id": "/Subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.RecoveryServices/vaults/testvault/backupFabrics/Azure/protectableContainers/StorageContainer;storage;test-rg;teststorage",
"properties": {
"backupManagementType": "AzureStorage",
"containerId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.Storage/storageAccounts/teststorage",
"friendlyName": "teststorage",
"healthStatus": "Healthy",
"protectableContainerType": "StorageContainer"
}
},
{
"name": "StorageContainer;ClassicStorage;test-rg;teststorage",
"type": "Microsoft.RecoveryServices/vaults/backupFabrics/protectableContainers",
"id": "/Subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.RecoveryServices/vaults/testvault/backupFabrics/Azure/protectableContainers/StorageContainer;ClassicStorage;test-rg;teststorage",
"properties": {
"backupManagementType": "AzureStorage",
"containerId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.ClassicStorage/storageAccounts/teststorage",
"friendlyName": "teststorage",
"healthStatus": "Healthy",
"protectableContainerType": "StorageContainer"
}
}
]
}
定义
| 名称 | 说明 |
|---|---|
|
Azure |
特定于 Azure 存储的可保护容器 |
|
Azure |
特定于 Azure 工作负荷的容器 |
|
Backup |
用于执行当前作业的备份管理类型。 |
|
created |
创建资源的标识的类型。 |
|
Error |
Error Detail 类,用于封装 Code、Message 和 Recommendations。 |
|
Error |
错误响应 |
|
Protectable |
可保护的容器类。 |
|
Protectable |
ProtectableContainer 资源列表 |
|
Protectable |
容器的类型。 此属性的值
|
|
system |
与创建和上次修改资源相关的元数据。 |
AzureStorageProtectableContainer
特定于 Azure 存储的可保护容器
| 名称 | 类型 | 说明 |
|---|---|---|
| backupManagementType |
容器的备份管理类型。 |
|
| containerId |
string |
容器的结构 ID,例如 ARM ID。 |
| friendlyName |
string |
容器的友好名称。 |
| healthStatus |
string |
容器运行状况的状态。 |
| protectableContainerType |
string:
Storage |
容器的类型。 此属性的值
|
AzureVMAppContainerProtectableContainer
特定于 Azure 工作负荷的容器
| 名称 | 类型 | 说明 |
|---|---|---|
| backupManagementType |
容器的备份管理类型。 |
|
| containerId |
string |
容器的结构 ID,例如 ARM ID。 |
| friendlyName |
string |
容器的友好名称。 |
| healthStatus |
string |
容器运行状况的状态。 |
| protectableContainerType |
string:
VMApp |
容器的类型。 此属性的值
|
BackupManagementType
用于执行当前作业的备份管理类型。
| 值 | 说明 |
|---|---|
| Invalid | |
| AzureIaasVM | |
| MAB | |
| DPM | |
| AzureBackupServer | |
| AzureSql | |
| AzureStorage | |
| AzureWorkload | |
| DefaultBackup |
createdByType
创建资源的标识的类型。
| 值 | 说明 |
|---|---|
| User | |
| Application | |
| ManagedIdentity | |
| Key |
ErrorDetail
Error Detail 类,用于封装 Code、Message 和 Recommendations。
| 名称 | 类型 | 说明 |
|---|---|---|
| code |
string |
错误代码。 |
| message |
string |
与代码相关的错误消息。 |
| recommendations |
string[] |
建议字符串列表。 |
ErrorResponse
错误响应
| 名称 | 类型 | 说明 |
|---|---|---|
| error |
错误对象。 |
ProtectableContainerResource
可保护的容器类。
| 名称 | 类型 | 说明 |
|---|---|---|
| eTag |
string |
可选 ETag。 |
| id |
string |
资源的完全限定资源 ID。 示例 - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} |
| location |
string |
资源位置。 |
| name |
string |
资源的名称 |
| properties | ProtectableContainer: |
ProtectableContainerResource 属性 |
| systemData |
包含 createdBy 和 modifiedBy 信息的 Azure 资源管理器元数据。 |
|
| tags |
object |
资源标记。 |
| type |
string |
资源类型。 例如,“Microsoft.Compute/virtualMachines”或“Microsoft.Storage/storageAccounts” |
ProtectableContainerResourceList
ProtectableContainer 资源列表
| 名称 | 类型 | 说明 |
|---|---|---|
| nextLink |
string |
用于提取下一页资源的 URI,每个 API 调用最多返回每页 200 个资源。 如果资源总数超过 200,请使用 ListNext() 提取下一页。 |
| value |
资源列表。 |
ProtectableContainerType
容器的类型。 此属性的值
- 计算 Azure VM 是 Microsoft.Compute/virtualMachines
- 经典计算 Azure VM 是 Microsoft.ClassicCompute/virtualMachines
| 值 | 说明 |
|---|---|
| Invalid | |
| Unknown | |
| IaasVMContainer | |
| IaasVMServiceContainer | |
| DPMContainer | |
| AzureBackupServerContainer | |
| MABContainer | |
| Cluster | |
| AzureSqlContainer | |
| Windows | |
| VCenter | |
| VMAppContainer | |
| SQLAGWorkLoadContainer | |
| StorageContainer | |
| GenericContainer | |
| Microsoft.ClassicCompute/virtualMachines | |
| Microsoft.Compute/virtualMachines | |
| AzureWorkloadContainer |
systemData
与创建和上次修改资源相关的元数据。
| 名称 | 类型 | 说明 |
|---|---|---|
| createdAt |
string (date-time) |
资源创建时间戳(UTC)。 |
| createdBy |
string |
创建资源的标识。 |
| createdByType |
创建资源的标识的类型。 |
|
| lastModifiedAt |
string (date-time) |
上次修改的资源时间戳(UTC) |
| lastModifiedBy |
string |
上次修改资源的标识。 |
| lastModifiedByType |
上次修改资源的标识的类型。 |