Share via


OperationalInsightsExtensions.GetOperationalInsightsWorkspaces Method

Definition

Overloads

GetOperationalInsightsWorkspaces(ResourceGroupResource)

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

GetOperationalInsightsWorkspaces(SubscriptionResource, CancellationToken)

Gets the workspaces in a subscription.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.OperationalInsights/workspaces
  • Operation Id: Workspaces_List
  • Default Api Version: 2022-10-01
  • Resource: OperationalInsightsWorkspaceResource

GetOperationalInsightsWorkspaces(ResourceGroupResource)

Source:
OperationalInsightsExtensions.cs
Source:
OperationalInsightsExtensions.cs

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

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

Parameters

resourceGroupResource
ResourceGroupResource

The ResourceGroupResource instance the method will execute against.

Returns

An object representing collection of OperationalInsightsWorkspaceResources and their operations over a OperationalInsightsWorkspaceResource.

Exceptions

resourceGroupResource is null.

Applies to

GetOperationalInsightsWorkspaces(SubscriptionResource, CancellationToken)

Source:
OperationalInsightsExtensions.cs
Source:
OperationalInsightsExtensions.cs

Gets the workspaces in a subscription.

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

Parameters

subscriptionResource
SubscriptionResource

The SubscriptionResource instance the method will execute against.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

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

Exceptions

subscriptionResource is null.

Applies to