MetricsAdvisorAdministrationClient.CreateDataSourceCredentialAsync Method

Definition

Creates a DataSourceCredentialEntity and assigns it a unique ID. This API provides different ways of authenticating to a DataFeedSource for data ingestion when the default authentication method does not suffice. Please see DataSourceCredentialEntity for a list of supported credentials.

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

Parameters

dataSourceCredential
DataSourceCredentialEntity

Specifies how the created DataSourceCredentialEntity should be configured.

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 created data source credential entity.

Exceptions

dataSourceCredential is null.

Applies to