MetricsAdvisorAdministrationClient.CreateDataSourceCredential Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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 Azure.Response<Azure.AI.MetricsAdvisor.Administration.DataSourceCredentialEntity> CreateDataSourceCredential (Azure.AI.MetricsAdvisor.Administration.DataSourceCredentialEntity dataSourceCredential, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateDataSourceCredential : Azure.AI.MetricsAdvisor.Administration.DataSourceCredentialEntity * System.Threading.CancellationToken -> Azure.Response<Azure.AI.MetricsAdvisor.Administration.DataSourceCredentialEntity>
override this.CreateDataSourceCredential : Azure.AI.MetricsAdvisor.Administration.DataSourceCredentialEntity * System.Threading.CancellationToken -> Azure.Response<Azure.AI.MetricsAdvisor.Administration.DataSourceCredentialEntity>
Public Overridable Function CreateDataSourceCredential (dataSourceCredential As DataSourceCredentialEntity, Optional cancellationToken As CancellationToken = Nothing) As 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
Azure SDK for .NET