SearchIndexerClient.GetDataSourceConnectionAsync 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.
Overloads
| Name | Description |
|---|---|
| GetDataSourceConnectionAsync(String, RequestContext) |
[Protocol Method] Retrieves a datasource definition.
|
| GetDataSourceConnectionAsync(String, CancellationToken) |
Retrieves a datasource definition. |
GetDataSourceConnectionAsync(String, RequestContext)
- Source:
- SearchIndexerClient.cs
[Protocol Method] Retrieves a datasource definition.
- 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> GetDataSourceConnectionAsync(string dataSourceConnectionName, Azure.RequestContext context);
abstract member GetDataSourceConnectionAsync : string * Azure.RequestContext -> System.Threading.Tasks.Task<Azure.Response>
override this.GetDataSourceConnectionAsync : string * Azure.RequestContext -> System.Threading.Tasks.Task<Azure.Response>
Public Overridable Function GetDataSourceConnectionAsync (dataSourceConnectionName As String, context As RequestContext) As Task(Of Response)
Parameters
- dataSourceConnectionName
- String
The name of the datasource.
- 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
dataSourceConnectionName is null.
dataSourceConnectionName is an empty string, and was expected to be non-empty.
Service returned a non-success status code.
Applies to
GetDataSourceConnectionAsync(String, CancellationToken)
- Source:
- SearchIndexerClient.cs
Retrieves a datasource definition.
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.Search.Documents.Indexes.Models.SearchIndexerDataSourceConnection>> GetDataSourceConnectionAsync(string dataSourceConnectionName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetDataSourceConnectionAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.Search.Documents.Indexes.Models.SearchIndexerDataSourceConnection>>
override this.GetDataSourceConnectionAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.Search.Documents.Indexes.Models.SearchIndexerDataSourceConnection>>
Public Overridable Function GetDataSourceConnectionAsync (dataSourceConnectionName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of SearchIndexerDataSourceConnection))
Parameters
- dataSourceConnectionName
- String
The name of the datasource.
- cancellationToken
- CancellationToken
The cancellation token that can be used to cancel the operation.
Returns
The Response<T> from the server containing the requested SearchIndexerDataSourceConnection.
Exceptions
dataSourceConnectionName is null.
dataSourceConnectionName is an empty string, and was expected to be non-empty.
Service returned a non-success status code.