다음을 통해 공유


MockableOperationalInsightsSubscriptionResource.GetOperationalInsightsWorkspaces Method

Definition

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 virtual Azure.Pageable<Azure.ResourceManager.OperationalInsights.OperationalInsightsWorkspaceResource> GetOperationalInsightsWorkspaces (System.Threading.CancellationToken cancellationToken = default);
abstract member GetOperationalInsightsWorkspaces : System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.OperationalInsights.OperationalInsightsWorkspaceResource>
override this.GetOperationalInsightsWorkspaces : System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.OperationalInsights.OperationalInsightsWorkspaceResource>
Public Overridable Function GetOperationalInsightsWorkspaces (Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of OperationalInsightsWorkspaceResource)

Parameters

cancellationToken
CancellationToken

The cancellation token to use.

Returns

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

Applies to