MetricsAdvisorAdministrationClient.UpdateDataSourceCredential Method

Definition

Updates an existing DataSourceCredentialEntity. In order to update your credential, you cannot create a DataSourceCredentialEntity directly from its constructor. You need to obtain an instance via GetDataSourceCredentialAsync(String, CancellationToken) or another CRUD operation and update it before calling this method.

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

Parameters

dataSourceCredential
DataSourceCredentialEntity

The DataSourceCredentialEntity model containing the updates to be applied.

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 information about the updated credential.

Exceptions

dataSourceCredential or dataSourceCredential.Id is null.

Applies to