Share via


MetricsAdvisorAdministrationClient.GetDataSourceCredentialAsync 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
String

The unique identifier of the DataSourceCredentialEntity.

cancellationToken
CancellationToken

A CancellationToken controlling the request lifetime.

Returns

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

Exceptions

dataSourceCredentialId is null.

dataSourceCredentialId is empty or not a valid GUID.

Applies to