你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

OperationalInsightsWorkspaceResource.GetManagementGroupsAsync 方法

定义

获取连接到工作区的管理组的列表。

  • 请求路径/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/managementGroups
  • 操作IdManagementGroups_List
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)

参数

cancellationToken
CancellationToken

要使用的取消标记。

返回

的异步集合 OperationalInsightsManagementGroup ,可能需要多个服务请求进行迭代。

适用于