MetricsAdvisorAdministrationClient.GetDataSourceCredentialAsync(String, CancellationToken) Method

Definition

Gets an existing DataSourceCredentialEntity.

public virtual System.Threading.Tasks.Task<Azure.Response<Azure.AI.MetricsAdvisor.Administration.DataSourceCredentialEntity>> GetDataSourceCredentialAsync (string dataSourceCredentialId, System.Threading.CancellationToken cancellationToken = default);
abstract member GetDataSourceCredentialAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.AI.MetricsAdvisor.Administration.DataSourceCredentialEntity>>
override this.GetDataSourceCredentialAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.AI.MetricsAdvisor.Administration.DataSourceCredentialEntity>>
Public Overridable Function GetDataSourceCredentialAsync (dataSourceCredentialId As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of DataSourceCredentialEntity))

Parameters

dataSourceCredentialId
System.String

The unique identifier of the DataSourceCredentialEntity.

cancellationToken
System.Threading.CancellationToken

A System.Threading.CancellationToken controlling the request lifetime.

Returns

System.Threading.Tasks.Task<Response<DataSourceCredentialEntity>>

A Response<T> containing the result of the operation. The result is a DataSourceCredentialEntity instance containing the requested information.

Exceptions

System.ArgumentNullException

dataSourceCredentialId is null.

System.ArgumentException

dataSourceCredentialId is empty or not a valid GUID.

Applies to