ISearchServices.RegenerateAdminKeysAsync 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.IAdminKeys> RegenerateAdminKeysAsync (string resourceGroupName, string searchServiceName, Microsoft.Azure.Management.Search.Fluent.Models.AdminKeyKind keyKind, System.Threading.CancellationToken cancellationToken = default);
abstract member RegenerateAdminKeysAsync : string * string * Microsoft.Azure.Management.Search.Fluent.Models.AdminKeyKind * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.Search.Fluent.IAdminKeys>
Public Function RegenerateAdminKeysAsync (resourceGroupName As String, searchServiceName As String, keyKind As AdminKeyKind, Optional cancellationToken As CancellationToken = Nothing) As Task(Of IAdminKeys)

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.

keyKind
AdminKeyKind

Specifies which key to regenerate. Valid values include 'primary' and 'secondary'. Possible values include: 'primary', 'secondary'.

cancellationToken
CancellationToken

Returns

Applies to