Partilhar via


OperationalInsightsExtensions.GetOperationalInsightsWorkspacesAsync Método

Definição

Obtém os workspaces em uma assinatura.

  • Caminho da Solicitação/assinaturas/{subscriptionId}/providers/Microsoft.OperationalInsights/workspaces
  • Operação IdWorkspaces_List
public static Azure.AsyncPageable<Azure.ResourceManager.OperationalInsights.OperationalInsightsWorkspaceResource> GetOperationalInsightsWorkspacesAsync (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default);
static member GetOperationalInsightsWorkspacesAsync : Azure.ResourceManager.Resources.SubscriptionResource * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.OperationalInsights.OperationalInsightsWorkspaceResource>
<Extension()>
Public Function GetOperationalInsightsWorkspacesAsync (subscriptionResource As SubscriptionResource, Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of OperationalInsightsWorkspaceResource)

Parâmetros

subscriptionResource
SubscriptionResource

A SubscriptionResource instância na qual o método será executado.

cancellationToken
CancellationToken

O token de cancelamento a ser usado.

Retornos

Uma coleção assíncrona de OperationalInsightsWorkspaceResource que pode levar várias solicitações de serviço para iterar.

Aplica-se a