Freigeben über


OperationalInsightsDataSourceCollection.GetAsync Methode

Definition

Ruft eine Datenquelle instance ab.

  • Anforderungspfad/abonnements/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/dataSources/{dataSourceName}
  • Vorgangs-IdDataSources_Get
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.OperationalInsights.OperationalInsightsDataSourceResource>> GetAsync (string dataSourceName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.OperationalInsights.OperationalInsightsDataSourceResource>>
override this.GetAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.OperationalInsights.OperationalInsightsDataSourceResource>>
Public Overridable Function GetAsync (dataSourceName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of OperationalInsightsDataSourceResource))

Parameter

dataSourceName
String

Name der Datenquelle.

cancellationToken
CancellationToken

Das zu verwendende Abbruchtoken.

Gibt zurück

Ausnahmen

dataSourceName ist eine leere Zeichenfolge und wurde erwartet, dass sie nicht leer ist.

dataSourceName ist NULL.

Gilt für: