Share via


ApplicationInsightsExtensions.GetWebTestsAsync Method

Definition

Get all Application Insights web test definitions for the specified subscription.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Insights/webtests
  • Operation Id: WebTests_List
  • Default Api Version: 2022-06-15
  • Resource: WebTestResource
public static Azure.AsyncPageable<Azure.ResourceManager.ApplicationInsights.WebTestResource> GetWebTestsAsync (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default);
static member GetWebTestsAsync : Azure.ResourceManager.Resources.SubscriptionResource * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.ApplicationInsights.WebTestResource>
<Extension()>
Public Function GetWebTestsAsync (subscriptionResource As SubscriptionResource, Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of WebTestResource)

Parameters

subscriptionResource
SubscriptionResource

The SubscriptionResource instance the method will execute against.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

An async collection of WebTestResource that may take multiple service requests to iterate over.

Exceptions

subscriptionResource is null.

Applies to