共用方式為


OperationalInsightsExtensions.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 static Azure.AsyncPageable<Azure.ResourceManager.OperationalInsights.LogAnalyticsQueryPackResource> GetLogAnalyticsQueryPacksAsync (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default);
static member GetLogAnalyticsQueryPacksAsync : Azure.ResourceManager.Resources.SubscriptionResource * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.OperationalInsights.LogAnalyticsQueryPackResource>
<Extension()>
Public Function GetLogAnalyticsQueryPacksAsync (subscriptionResource As SubscriptionResource, Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of LogAnalyticsQueryPackResource)

Parameters

subscriptionResource
SubscriptionResource

The SubscriptionResource instance the method will execute against.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

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

Exceptions

subscriptionResource is null.

Applies to