ISearchServices.CreateQueryKeyAsync Method

Definition

Regenerates either the primary or secondary admin API key. You can only regenerate one key at a time.

public System.Threading.Tasks.Task<Microsoft.Azure.Management.Search.Fluent.IQueryKey> CreateQueryKeyAsync (string resourceGroupName, string searchServiceName, string name, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateQueryKeyAsync : string * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.Search.Fluent.IQueryKey>
Public Function CreateQueryKeyAsync (resourceGroupName As String, searchServiceName As String, name As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of IQueryKey)

Parameters

resourceGroupName
String

The name of the resource group within the current subscription. You can obtain this value from the Azure Resource Manager API or the portal.

searchServiceName
String

The name of the Azure Search service associated with the specified resource group.

name
String

The name of the new query API key.

cancellationToken
CancellationToken

Returns

Applies to