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

Parameters

name
String

The name of the new query API key.

cancellationToken
CancellationToken

Returns

Applies to