ApplicationInsightsExtensions.GetWebTests Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
GetWebTests(SubscriptionResource, CancellationToken) |
Get all Application Insights web test definitions for the specified subscription.
|
GetWebTests(ResourceGroupResource) |
Gets a collection of WebTestResources in the ResourceGroupResource. MockingTo mock this method, please mock GetWebTests() instead. |
GetWebTests(SubscriptionResource, CancellationToken)
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.Pageable<Azure.ResourceManager.ApplicationInsights.WebTestResource> GetWebTests (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default);
static member GetWebTests : Azure.ResourceManager.Resources.SubscriptionResource * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.ApplicationInsights.WebTestResource>
<Extension()>
Public Function GetWebTests (subscriptionResource As SubscriptionResource, Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of WebTestResource)
Parameters
- subscriptionResource
- SubscriptionResource
The SubscriptionResource instance the method will execute against.
- cancellationToken
- CancellationToken
The cancellation token to use.
Returns
A collection of WebTestResource that may take multiple service requests to iterate over.
Exceptions
subscriptionResource
is null.
Applies to
GetWebTests(ResourceGroupResource)
Gets a collection of WebTestResources in the ResourceGroupResource. MockingTo mock this method, please mock GetWebTests() instead.
public static Azure.ResourceManager.ApplicationInsights.WebTestCollection GetWebTests (this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource);
static member GetWebTests : Azure.ResourceManager.Resources.ResourceGroupResource -> Azure.ResourceManager.ApplicationInsights.WebTestCollection
<Extension()>
Public Function GetWebTests (resourceGroupResource As ResourceGroupResource) As WebTestCollection
Parameters
- resourceGroupResource
- ResourceGroupResource
The ResourceGroupResource instance the method will execute against.
Returns
An object representing collection of WebTestResources and their operations over a WebTestResource.
Exceptions
resourceGroupResource
is null.
Applies to
Azure SDK for .NET