Partager via


OperationalInsightsWorkspaceResource.GetOperationalInsightsDataSourceAsync Méthode

Définition

Obtient une instance de source de données.

  • Chemin de la demande/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/dataSources/{dataSourceName}
  • IdDataSources_Get d’opération
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.OperationalInsights.OperationalInsightsDataSourceResource>> GetOperationalInsightsDataSourceAsync (string dataSourceName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetOperationalInsightsDataSourceAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.OperationalInsights.OperationalInsightsDataSourceResource>>
override this.GetOperationalInsightsDataSourceAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.OperationalInsights.OperationalInsightsDataSourceResource>>
Public Overridable Function GetOperationalInsightsDataSourceAsync (dataSourceName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of OperationalInsightsDataSourceResource))

Paramètres

dataSourceName
String

Nom de la source de données.

cancellationToken
CancellationToken

Jeton d’annulation à utiliser.

Retours

Exceptions

dataSourceName est une chaîne vide et devait être non vide.

dataSourceName a la valeur null.

S’applique à