Partager via


OperationalInsightsExtensions.GetOperationalInsightsWorkspacesAsync Méthode

Définition

Obtient les espaces de travail d’un abonnement.

  • Chemin/abonnements de la demande/{subscriptionId}/providers/Microsoft.OperationalInsights/workspaces
  • Opération 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)

Paramètres

subscriptionResource
SubscriptionResource

Instance SubscriptionResource sur laquelle la méthode s’exécute.

cancellationToken
CancellationToken

Jeton d’annulation à utiliser.

Retours

Collection asynchrone de qui peut nécessiter plusieurs demandes de OperationalInsightsWorkspaceResource service pour itérer.

S’applique à