共用方式為


LoadTestingExtensions.GetLoadTestingResources Method

Definition

Overloads

GetLoadTestingResources(ResourceGroupResource)

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

GetLoadTestingResources(SubscriptionResource, CancellationToken)

Lists loadtests resources in a subscription.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.LoadTestService/loadTests
  • Operation Id: LoadTests_ListBySubscription

GetLoadTestingResources(ResourceGroupResource)

Source:
LoadTestingExtensions.cs
Source:
LoadTestingExtensions.cs

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

public static Azure.ResourceManager.LoadTesting.LoadTestingResourceCollection GetLoadTestingResources (this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource);
static member GetLoadTestingResources : Azure.ResourceManager.Resources.ResourceGroupResource -> Azure.ResourceManager.LoadTesting.LoadTestingResourceCollection
<Extension()>
Public Function GetLoadTestingResources (resourceGroupResource As ResourceGroupResource) As LoadTestingResourceCollection

Parameters

resourceGroupResource
ResourceGroupResource

The ResourceGroupResource instance the method will execute against.

Returns

An object representing collection of LoadTestingResources and their operations over a LoadTestingResource.

Exceptions

resourceGroupResource is null.

Applies to

GetLoadTestingResources(SubscriptionResource, CancellationToken)

Source:
LoadTestingExtensions.cs
Source:
LoadTestingExtensions.cs

Lists loadtests resources in a subscription.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.LoadTestService/loadTests
  • Operation Id: LoadTests_ListBySubscription
public static Azure.Pageable<Azure.ResourceManager.LoadTesting.LoadTestingResource> GetLoadTestingResources (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default);
static member GetLoadTestingResources : Azure.ResourceManager.Resources.SubscriptionResource * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.LoadTesting.LoadTestingResource>
<Extension()>
Public Function GetLoadTestingResources (subscriptionResource As SubscriptionResource, Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of LoadTestingResource)

Parameters

subscriptionResource
SubscriptionResource

The SubscriptionResource instance the method will execute against.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

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

Exceptions

subscriptionResource is null.

Applies to