MockableOperationalInsightsSubscriptionResource.GetLogAnalyticsQueryPacksAsync Method

Definition

Gets a list of all Log Analytics QueryPacks within a subscription.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.OperationalInsights/queryPacks
  • Operation Id: QueryPacks_List
  • Default Api Version: 2019-09-01
  • Resource: LogAnalyticsQueryPackResource
public virtual Azure.AsyncPageable<Azure.ResourceManager.OperationalInsights.LogAnalyticsQueryPackResource> GetLogAnalyticsQueryPacksAsync (System.Threading.CancellationToken cancellationToken = default);
abstract member GetLogAnalyticsQueryPacksAsync : System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.OperationalInsights.LogAnalyticsQueryPackResource>
override this.GetLogAnalyticsQueryPacksAsync : System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.OperationalInsights.LogAnalyticsQueryPackResource>
Public Overridable Function GetLogAnalyticsQueryPacksAsync (Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of LogAnalyticsQueryPackResource)

Parameters

cancellationToken
CancellationToken

The cancellation token to use.

Returns

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

Applies to