Share via


MonitorExtensions.GetDataCollectionEndpointsAsync Method

Definition

Lists all data collection endpoints in the specified subscription

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

Parameters

subscriptionResource
SubscriptionResource

The SubscriptionResource instance the method will execute against.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

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

Exceptions

subscriptionResource is null.

Applies to