OperationalInsightsExtensions.GetOperationalInsightsClusters Method

Definition

Overloads

GetOperationalInsightsClusters(ResourceGroupResource)

Gets a collection of OperationalInsightsClusterResources in the ResourceGroupResource. MockingTo mock this method, please mock GetOperationalInsightsClusters() instead.

GetOperationalInsightsClusters(SubscriptionResource, CancellationToken)

Gets the Log Analytics clusters in a subscription.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.OperationalInsights/clusters
  • Operation Id: Clusters_List
  • Default Api Version: 2021-06-01
  • Resource: OperationalInsightsClusterResource

GetOperationalInsightsClusters(ResourceGroupResource)

Source:
OperationalInsightsExtensions.cs
Source:
OperationalInsightsExtensions.cs

Gets a collection of OperationalInsightsClusterResources in the ResourceGroupResource. MockingTo mock this method, please mock GetOperationalInsightsClusters() instead.

public static Azure.ResourceManager.OperationalInsights.OperationalInsightsClusterCollection GetOperationalInsightsClusters (this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource);
static member GetOperationalInsightsClusters : Azure.ResourceManager.Resources.ResourceGroupResource -> Azure.ResourceManager.OperationalInsights.OperationalInsightsClusterCollection
<Extension()>
Public Function GetOperationalInsightsClusters (resourceGroupResource As ResourceGroupResource) As OperationalInsightsClusterCollection

Parameters

resourceGroupResource
ResourceGroupResource

The ResourceGroupResource instance the method will execute against.

Returns

An object representing collection of OperationalInsightsClusterResources and their operations over a OperationalInsightsClusterResource.

Exceptions

resourceGroupResource is null.

Applies to

GetOperationalInsightsClusters(SubscriptionResource, CancellationToken)

Source:
OperationalInsightsExtensions.cs
Source:
OperationalInsightsExtensions.cs

Gets the Log Analytics clusters in a subscription.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.OperationalInsights/clusters
  • Operation Id: Clusters_List
  • Default Api Version: 2021-06-01
  • Resource: OperationalInsightsClusterResource
public static Azure.Pageable<Azure.ResourceManager.OperationalInsights.OperationalInsightsClusterResource> GetOperationalInsightsClusters (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default);
static member GetOperationalInsightsClusters : Azure.ResourceManager.Resources.SubscriptionResource * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.OperationalInsights.OperationalInsightsClusterResource>
<Extension()>
Public Function GetOperationalInsightsClusters (subscriptionResource As SubscriptionResource, Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of OperationalInsightsClusterResource)

Parameters

subscriptionResource
SubscriptionResource

The SubscriptionResource instance the method will execute against.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

A collection of OperationalInsightsClusterResource that may take multiple service requests to iterate over.

Exceptions

subscriptionResource is null.

Applies to