SearchIndexerClient.CreateDataSourceConnectionAsync Method

Definition

Overloads

Name Description
CreateDataSourceConnectionAsync(RequestContent, RequestContext)

[Protocol Method] Creates a new datasource.

  • This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
CreateDataSourceConnectionAsync(SearchIndexerDataSourceConnection, CancellationToken)

Creates a new datasource.

CreateDataSourceConnectionAsync(RequestContent, RequestContext)

Source:
SearchIndexerClient.cs
Source:
SearchIndexerClient.cs

[Protocol Method] Creates a new datasource.

  • This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
public virtual System.Threading.Tasks.Task<Azure.Response> CreateDataSourceConnectionAsync(Azure.Core.RequestContent content, Azure.RequestContext context = default);
abstract member CreateDataSourceConnectionAsync : Azure.Core.RequestContent * Azure.RequestContext -> System.Threading.Tasks.Task<Azure.Response>
override this.CreateDataSourceConnectionAsync : Azure.Core.RequestContent * Azure.RequestContext -> System.Threading.Tasks.Task<Azure.Response>
Public Overridable Function CreateDataSourceConnectionAsync (content As RequestContent, Optional context As RequestContext = Nothing) As Task(Of Response)

Parameters

content
RequestContent

The content to send as the body of the request.

context
RequestContext

The request options, which can override default behaviors of the client pipeline on a per-call basis.

Returns

The response returned from the service.

Exceptions

content is null.

Service returned a non-success status code.

Applies to

CreateDataSourceConnectionAsync(SearchIndexerDataSourceConnection, CancellationToken)

Source:
SearchIndexerClient.cs
Source:
SearchIndexerClient.cs

Creates a new datasource.

public virtual System.Threading.Tasks.Task<Azure.Response<Azure.Search.Documents.Indexes.Models.SearchIndexerDataSourceConnection>> CreateDataSourceConnectionAsync(Azure.Search.Documents.Indexes.Models.SearchIndexerDataSourceConnection dataSourceConnection, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateDataSourceConnectionAsync : Azure.Search.Documents.Indexes.Models.SearchIndexerDataSourceConnection * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.Search.Documents.Indexes.Models.SearchIndexerDataSourceConnection>>
override this.CreateDataSourceConnectionAsync : Azure.Search.Documents.Indexes.Models.SearchIndexerDataSourceConnection * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.Search.Documents.Indexes.Models.SearchIndexerDataSourceConnection>>
Public Overridable Function CreateDataSourceConnectionAsync (dataSourceConnection As SearchIndexerDataSourceConnection, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of SearchIndexerDataSourceConnection))

Parameters

dataSourceConnection
SearchIndexerDataSourceConnection

The definition of the datasource to create.

cancellationToken
CancellationToken

The cancellation token that can be used to cancel the operation.

Returns

The Response<T> from the server containing the SearchIndexerDataSourceConnection that was created. This may differ slightly from what was passed in since the service may return back properties set to their default values.

Exceptions

dataSourceConnection is null.

Service returned a non-success status code.

Applies to