Share via


IIndexersOperations.CreateOrUpdateWithHttpMessagesAsync Method

Definition

Overloads

CreateOrUpdateWithHttpMessagesAsync(Indexer, SearchRequestOptions, AccessCondition, Dictionary<String,List<String>>, CancellationToken)

Creates a new indexer or updates an indexer if it already exists. https://docs.microsoft.com/rest/api/searchservice/Create-Indexer

CreateOrUpdateWithHttpMessagesAsync(String, Indexer, SearchRequestOptions, AccessCondition, Dictionary<String,List<String>>, CancellationToken)

Creates a new indexer or updates an indexer if it already exists. https://docs.microsoft.com/rest/api/searchservice/Create-Indexer

CreateOrUpdateWithHttpMessagesAsync(Indexer, SearchRequestOptions, AccessCondition, Dictionary<String,List<String>>, CancellationToken)

Creates a new indexer or updates an indexer if it already exists. https://docs.microsoft.com/rest/api/searchservice/Create-Indexer

public System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<Microsoft.Azure.Search.Models.Indexer>> CreateOrUpdateWithHttpMessagesAsync (Microsoft.Azure.Search.Models.Indexer indexer, Microsoft.Azure.Search.Models.SearchRequestOptions searchRequestOptions = default, Microsoft.Azure.Search.Models.AccessCondition accessCondition = default, System.Collections.Generic.Dictionary<string,System.Collections.Generic.List<string>> customHeaders = default, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdateWithHttpMessagesAsync : Microsoft.Azure.Search.Models.Indexer * Microsoft.Azure.Search.Models.SearchRequestOptions * Microsoft.Azure.Search.Models.AccessCondition * System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<Microsoft.Azure.Search.Models.Indexer>>
Public Function CreateOrUpdateWithHttpMessagesAsync (indexer As Indexer, Optional searchRequestOptions As SearchRequestOptions = Nothing, Optional accessCondition As AccessCondition = Nothing, Optional customHeaders As Dictionary(Of String, List(Of String)) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of AzureOperationResponse(Of Indexer))

Parameters

indexer
Indexer

The definition of the indexer to create or update.

searchRequestOptions
SearchRequestOptions

Additional parameters for the operation

accessCondition
AccessCondition

Additional parameters for the operation

customHeaders
Dictionary<String,List<String>>

Headers that will be added to request.

cancellationToken
CancellationToken

The cancellation token.

Returns

A response object containing the response body and response headers.

Exceptions

Thrown when the operation returned an invalid status code.

Thrown when unable to deserialize the response.

Thrown when a required parameter is null.

Thrown when a required parameter is null.

Applies to

CreateOrUpdateWithHttpMessagesAsync(String, Indexer, SearchRequestOptions, AccessCondition, Dictionary<String,List<String>>, CancellationToken)

Creates a new indexer or updates an indexer if it already exists. https://docs.microsoft.com/rest/api/searchservice/Create-Indexer

public System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<Microsoft.Azure.Search.Models.Indexer>> CreateOrUpdateWithHttpMessagesAsync (string indexerName, Microsoft.Azure.Search.Models.Indexer indexer, Microsoft.Azure.Search.Models.SearchRequestOptions searchRequestOptions = default, Microsoft.Azure.Search.Models.AccessCondition accessCondition = default, System.Collections.Generic.Dictionary<string,System.Collections.Generic.List<string>> customHeaders = default, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdateWithHttpMessagesAsync : string * Microsoft.Azure.Search.Models.Indexer * Microsoft.Azure.Search.Models.SearchRequestOptions * Microsoft.Azure.Search.Models.AccessCondition * System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<Microsoft.Azure.Search.Models.Indexer>>
Public Function CreateOrUpdateWithHttpMessagesAsync (indexerName As String, indexer As Indexer, Optional searchRequestOptions As SearchRequestOptions = Nothing, Optional accessCondition As AccessCondition = Nothing, Optional customHeaders As Dictionary(Of String, List(Of String)) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of AzureOperationResponse(Of Indexer))

Parameters

indexerName
String

The name of the indexer to create or update.

indexer
Indexer

The definition of the indexer to create or update.

searchRequestOptions
SearchRequestOptions

Additional parameters for the operation

accessCondition
AccessCondition

Additional parameters for the operation

customHeaders
Dictionary<String,List<String>>

The headers that will be added to request.

cancellationToken
CancellationToken

The cancellation token.

Returns

Exceptions

Thrown when the operation returned an invalid status code

Thrown when unable to deserialize the response

Thrown when a required parameter is null

Applies to