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

DevTestLabDiskCollection.GetAllAsync 方法

定义

列出给定用户配置文件中的磁盘。

  • 请求路径/订阅/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/users/{userName}/disks
  • 操作IdDisks_List
public virtual Azure.AsyncPageable<Azure.ResourceManager.DevTestLabs.DevTestLabDiskResource> GetAllAsync (string expand = default, string filter = default, int? top = default, string orderby = default, System.Threading.CancellationToken cancellationToken = default);
abstract member GetAllAsync : string * string * Nullable<int> * string * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.DevTestLabs.DevTestLabDiskResource>
override this.GetAllAsync : string * string * Nullable<int> * string * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.DevTestLabs.DevTestLabDiskResource>
Public Overridable Function GetAllAsync (Optional expand As String = Nothing, Optional filter As String = Nothing, Optional top As Nullable(Of Integer) = Nothing, Optional orderby As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of DevTestLabDiskResource)

参数

expand
String

指定$expand查询。 示例:“properties ($select=diskType) ”。

filter
String

要应用于操作的筛选器。 示例:“$filter=contains (name,'myName') 。

top
Nullable<Int32>

要从操作返回的最大资源数。 示例:“$top=10”。

orderby
String

结果的排序表达式,使用 OData 表示法。 示例:“$orderby=name desc”。

cancellationToken
CancellationToken

要使用的取消标记。

返回

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

适用于