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

RecoveryServicesBackupExtensions.GetBackupProtectableItemsAsync 方法

定义

根据查询筛选器和分页参数提供订阅中可保护对象的可分页列表。

  • 请求路径/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupProtectableItems
  • 操作IdBackupProtectableItems_List
public static Azure.AsyncPageable<Azure.ResourceManager.RecoveryServicesBackup.Models.WorkloadProtectableItemResource> GetBackupProtectableItemsAsync (this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string vaultName, string filter = default, string skipToken = default, System.Threading.CancellationToken cancellationToken = default);
static member GetBackupProtectableItemsAsync : Azure.ResourceManager.Resources.ResourceGroupResource * string * string * string * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.RecoveryServicesBackup.Models.WorkloadProtectableItemResource>
<Extension()>
Public Function GetBackupProtectableItemsAsync (resourceGroupResource As ResourceGroupResource, vaultName As String, Optional filter As String = Nothing, Optional skipToken As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of WorkloadProtectableItemResource)

参数

resourceGroupResource
ResourceGroupResource

方法 ResourceGroupResource 将对其执行的实例。

vaultName
String

恢复服务保管库的名称。

filter
String

OData 筛选器选项。

skipToken
String

skipToken 筛选器。

cancellationToken
CancellationToken

要使用的取消标记。

返回

的异步集合 WorkloadProtectableItemResource ,可能需要循环访问多个服务请求。

例外

vaultName 是一个空字符串,预期为非空。

vaultName 为 null。

适用于