Condividi tramite


OperationalInsightsWorkspaceResource.GetManagementGroupsAsync Method

Definition

Gets a list of management groups connected to a workspace.

  • Request Path: /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/managementGroups
  • Operation Id: ManagementGroups_List
  • Default Api Version: 2020-08-01
public virtual Azure.AsyncPageable<Azure.ResourceManager.OperationalInsights.Models.OperationalInsightsManagementGroup> GetManagementGroupsAsync (System.Threading.CancellationToken cancellationToken = default);
abstract member GetManagementGroupsAsync : System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.OperationalInsights.Models.OperationalInsightsManagementGroup>
override this.GetManagementGroupsAsync : System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.OperationalInsights.Models.OperationalInsightsManagementGroup>
Public Overridable Function GetManagementGroupsAsync (Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of OperationalInsightsManagementGroup)

Parameters

cancellationToken
CancellationToken

The cancellation token to use.

Returns

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

Applies to