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

DevTestLabsExtensions.GetDevTestLabs 方法

定义

重载

GetDevTestLabs(ResourceGroupResource)

获取 ResourceGroupResource 中 DevTestLabResources 的集合。

GetDevTestLabs(SubscriptionResource, String, String, Nullable<Int32>, String, CancellationToken)

列出订阅中的实验室。

  • 请求路径/subscriptions/{subscriptionId}/providers/Microsoft.DevTestLab/labs
  • 操作IdLabs_ListBySubscription

GetDevTestLabs(ResourceGroupResource)

获取 ResourceGroupResource 中 DevTestLabResources 的集合。

public static Azure.ResourceManager.DevTestLabs.DevTestLabCollection GetDevTestLabs (this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource);
static member GetDevTestLabs : Azure.ResourceManager.Resources.ResourceGroupResource -> Azure.ResourceManager.DevTestLabs.DevTestLabCollection
<Extension()>
Public Function GetDevTestLabs (resourceGroupResource As ResourceGroupResource) As DevTestLabCollection

参数

resourceGroupResource
ResourceGroupResource

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

返回

一个 对象,表示 DevTestLabResources 的集合及其在 DevTestLabResource 上的操作。

适用于

GetDevTestLabs(SubscriptionResource, String, String, Nullable<Int32>, String, CancellationToken)

列出订阅中的实验室。

  • 请求路径/subscriptions/{subscriptionId}/providers/Microsoft.DevTestLab/labs
  • 操作IdLabs_ListBySubscription
public static Azure.Pageable<Azure.ResourceManager.DevTestLabs.DevTestLabResource> GetDevTestLabs (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, string expand = default, string filter = default, int? top = default, string orderby = default, System.Threading.CancellationToken cancellationToken = default);
static member GetDevTestLabs : Azure.ResourceManager.Resources.SubscriptionResource * string * string * Nullable<int> * string * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.DevTestLabs.DevTestLabResource>
<Extension()>
Public Function GetDevTestLabs (subscriptionResource As SubscriptionResource, 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 Pageable(Of DevTestLabResource)

参数

subscriptionResource
SubscriptionResource

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

expand
String

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

filter
String

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

top
Nullable<Int32>

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

orderby
String

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

cancellationToken
CancellationToken

要使用的取消标记。

返回

可能需要多个服务请求来循环访问的 的 DevTestLabResource 集合。

适用于