다음을 통해 공유


DevTestLabsExtensions.GetDevTestLabs Method

Definition

Overloads

GetDevTestLabs(ResourceGroupResource)

Gets a collection of DevTestLabResources in the ResourceGroupResource. MockingTo mock this method, please mock GetDevTestLabs() instead.

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

List labs in a subscription.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.DevTestLab/labs
  • Operation Id: Labs_ListBySubscription

GetDevTestLabs(ResourceGroupResource)

Source:
DevTestLabsExtensions.cs
Source:
DevTestLabsExtensions.cs

Gets a collection of DevTestLabResources in the ResourceGroupResource. MockingTo mock this method, please mock GetDevTestLabs() instead.

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

Parameters

resourceGroupResource
ResourceGroupResource

The ResourceGroupResource instance the method will execute against.

Returns

An object representing collection of DevTestLabResources and their operations over a DevTestLabResource.

Exceptions

resourceGroupResource is null.

Applies to

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

Source:
DevTestLabsExtensions.cs
Source:
DevTestLabsExtensions.cs

List labs in a subscription.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.DevTestLab/labs
  • Operation Id: Labs_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)

Parameters

subscriptionResource
SubscriptionResource

The SubscriptionResource instance the method will execute against.

expand
String

Specify the $expand query. Example: 'properties($select=defaultStorageAccount)'.

filter
String

The filter to apply to the operation. Example: '$filter=contains(name,'myName').

top
Nullable<Int32>

The maximum number of resources to return from the operation. Example: '$top=10'.

orderby
String

The ordering expression for the results, using OData notation. Example: '$orderby=name desc'.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

A collection of DevTestLabResource that may take multiple service requests to iterate over.

Exceptions

subscriptionResource is null.

Applies to