Compartilhar via


OperationalInsightsWorkspaceResource.GetOperationalInsightsDataSourceAsync 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>> 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))

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