Partilhar via


OperationalInsightsDataSourceCollection.GetAsync Método

Definição

Obtém uma instância de fonte de dados.

  • Caminho da Solicitação/assinaturas/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/dataSources/{dataSourceName}
  • Operação 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))

Parâmetros

dataSourceName
String

Nome da fonte de dados.

cancellationToken
CancellationToken

O token de cancelamento a ser usado.

Retornos

Exceções

dataSourceName é uma cadeia de caracteres vazia e esperava-se que não estivesse vazia.

dataSourceName é nulo.

Aplica-se a