Condividi tramite


IQueryKeysOperations.CreateWithHttpMessagesAsync Metodo

Definizione

Genera una nuova chiave di query per il servizio di ricerca specificato. È possibile creare fino a 50 chiavi di query per servizio. https://aka.ms/search-manage

public System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<Microsoft.Azure.Management.Search.Fluent.Models.QueryKeyInner>> CreateWithHttpMessagesAsync (string resourceGroupName, string searchServiceName, string name, Microsoft.Azure.Management.Search.Fluent.Models.SearchManagementRequestOptionsInner searchManagementRequestOptions = default, System.Collections.Generic.Dictionary<string,System.Collections.Generic.List<string>> customHeaders = default, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateWithHttpMessagesAsync : string * string * string * Microsoft.Azure.Management.Search.Fluent.Models.SearchManagementRequestOptionsInner * System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<Microsoft.Azure.Management.Search.Fluent.Models.QueryKeyInner>>
Public Function CreateWithHttpMessagesAsync (resourceGroupName As String, searchServiceName As String, name As String, Optional searchManagementRequestOptions As SearchManagementRequestOptionsInner = Nothing, Optional customHeaders As Dictionary(Of String, List(Of String)) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of AzureOperationResponse(Of QueryKeyInner))

Parametri

resourceGroupName
String

Nome del gruppo di risorse all'interno della sottoscrizione corrente. È possibile ottenere questo valore dall'API di Gestione risorse di Azure o dal portale.

searchServiceName
String

Nome del servizio di ricerca di Azure associato al gruppo di risorse specificato.

name
String

Nome della nuova chiave API di query.

searchManagementRequestOptions
SearchManagementRequestOptionsInner

Parametri aggiuntivi per l'operazione

customHeaders
Dictionary<String,List<String>>

Intestazioni che verranno aggiunte alla richiesta.

cancellationToken
CancellationToken

Token di annullamento.

Restituisce

Eccezioni

Generata quando l'operazione ha restituito un codice di stato non valido

Generata quando non è possibile deserializzare la risposta

Generata quando un parametro obbligatorio è Null

Si applica a