你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

Protectable Containers - List

列出可注册到恢复服务保管库的容器。

GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/protectableContainers?api-version=2023-02-01
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/protectableContainers?api-version=2023-02-01&$filter={$filter}

URI 参数

名称 必需 类型 说明
fabricName
path True

string

resourceGroupName
path True

string

恢复服务保管库所在的资源组的名称。

subscriptionId
path True

string

订阅 ID。

vaultName
path True

string

恢复服务保管库的名称。

api-version
query True

string

客户端 API 版本。

$filter
query

string

OData 筛选器选项。

响应

名称 类型 说明
200 OK

ProtectableContainerResourceList

确定

Other Status Codes

CloudError

描述操作失败原因的错误响应。

安全性

azure_auth

Azure Active Directory OAuth2 流

Type: oauth2
Flow: implicit
Authorization URL: https://login.microsoftonline.com/common/oauth2/authorize

Scopes

名称 说明
user_impersonation 模拟用户帐户。

示例

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=2023-02-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"
      }
    }
  ]
}

定义

名称 说明
AzureStorageProtectableContainer

特定于 Azure 存储的可保护容器

AzureVMAppContainerProtectableContainer

特定于 Azure 工作负载的容器

BackupManagementType

备份项的备份管理类型。

CloudError

来自容器实例服务的错误响应。

CloudErrorBody

来自容器实例服务的错误响应。

ErrorAdditionalInfo

资源管理错误附加信息。

ProtectableContainerResource

可保护的容器类。

ProtectableContainerResourceList

ProtectableContainer 资源列表

AzureStorageProtectableContainer

特定于 Azure 存储的可保护容器

名称 类型 说明
backupManagementType

BackupManagementType

容器的备份管理类型。

containerId

string

容器的结构 ID,例如 ARM ID。

friendlyName

string

易记的容器名称。

healthStatus

string

容器的运行状况状态。

protectableContainerType string:

StorageContainer

容器的类型。 此属性的值

  1. 计算 Azure VM 为 Microsoft.Compute/virtualMachines
  2. 经典计算 Azure VM 为 Microsoft.ClassicCompute/virtualMachines

AzureVMAppContainerProtectableContainer

特定于 Azure 工作负载的容器

名称 类型 说明
backupManagementType

BackupManagementType

容器的备份管理类型。

containerId

string

容器的结构 ID,例如 ARM ID。

friendlyName

string

易记的容器名称。

healthStatus

string

容器的运行状况状态。

protectableContainerType string:

VMAppContainer

容器的类型。 此属性的值

  1. 计算 Azure VM 为 Microsoft.Compute/virtualMachines
  2. 经典计算 Azure VM 为 Microsoft.ClassicCompute/virtualMachines

BackupManagementType

备份项的备份管理类型。

名称 类型 说明
AzureBackupServer

string

AzureIaasVM

string

AzureSql

string

AzureStorage

string

AzureWorkload

string

DPM

string

DefaultBackup

string

Invalid

string

MAB

string

CloudError

来自容器实例服务的错误响应。

名称 类型 说明
error

CloudErrorBody

错误对象。

CloudErrorBody

来自容器实例服务的错误响应。

名称 类型 说明
additionalInfo

ErrorAdditionalInfo[]

错误附加信息。

code

string

错误的标识符。 代码是固定的,旨在以编程方式使用。

details

CloudErrorBody[]

有关错误的其他详细信息的列表。

message

string

描述错误的消息,该消息适用于在用户界面中显示。

target

string

特定错误的目标。 例如,属性的名称出错。

ErrorAdditionalInfo

资源管理错误附加信息。

名称 类型 说明
info

object

其他信息。

type

string

其他信息类型。

ProtectableContainerResource

可保护的容器类。

名称 类型 说明
eTag

string

可选 ETag。

id

string

资源 ID 表示资源的完整路径。

location

string

资源位置。

name

string

与资源关联的资源名称。

properties ProtectableContainer:

ProtectableContainerResource 属性

tags

object

资源标记。

type

string

资源类型表示命名空间/ResourceType/ResourceType/... 格式的完整路径

ProtectableContainerResourceList

ProtectableContainer 资源列表

名称 类型 说明
nextLink

string

用于提取下一页资源的 URI。 调用 ListNext () 提取下一页资源。

value

ProtectableContainerResource[]

资源列表。