Share via


MetricsAdvisorAdministrationClient.GetDataSourceCredential Method

Definition

Gets an existing DataSourceCredentialEntity.

public virtual Azure.Response<Azure.AI.MetricsAdvisor.Administration.DataSourceCredentialEntity> GetDataSourceCredential (string dataSourceCredentialId, System.Threading.CancellationToken cancellationToken = default);
abstract member GetDataSourceCredential : string * System.Threading.CancellationToken -> Azure.Response<Azure.AI.MetricsAdvisor.Administration.DataSourceCredentialEntity>
override this.GetDataSourceCredential : string * System.Threading.CancellationToken -> Azure.Response<Azure.AI.MetricsAdvisor.Administration.DataSourceCredentialEntity>
Public Overridable Function GetDataSourceCredential (dataSourceCredentialId As String, Optional cancellationToken As CancellationToken = Nothing) As 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