ISearchServices.RegenerateAdminKeys(String, String, AdminKeyKind) Method

Definition

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

public Microsoft.Azure.Management.Search.Fluent.IAdminKeys RegenerateAdminKeys (string resourceGroupName, string searchServiceName, Microsoft.Azure.Management.Search.Fluent.Models.AdminKeyKind keyKind);
abstract member RegenerateAdminKeys : string * string * Microsoft.Azure.Management.Search.Fluent.Models.AdminKeyKind -> Microsoft.Azure.Management.Search.Fluent.IAdminKeys
Public Function RegenerateAdminKeys (resourceGroupName As String, searchServiceName As String, keyKind As AdminKeyKind) As 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'.

Returns

Applies to