AdminKeysOperationsExtensions.Regenerate Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Regenerates either the primary or secondary admin API key. You can only regenerate one key at a time. https://aka.ms/search-manage
public static Microsoft.Azure.Management.Search.Models.AdminKeyResult Regenerate (this Microsoft.Azure.Management.Search.IAdminKeysOperations operations, string resourceGroupName, string searchServiceName, Microsoft.Azure.Management.Search.Models.AdminKeyKind keyKind, Microsoft.Azure.Management.Search.Models.SearchManagementRequestOptions searchManagementRequestOptions = default);
static member Regenerate : Microsoft.Azure.Management.Search.IAdminKeysOperations * string * string * Microsoft.Azure.Management.Search.Models.AdminKeyKind * Microsoft.Azure.Management.Search.Models.SearchManagementRequestOptions -> Microsoft.Azure.Management.Search.Models.AdminKeyResult
<Extension()>
Public Function Regenerate (operations As IAdminKeysOperations, resourceGroupName As String, searchServiceName As String, keyKind As AdminKeyKind, Optional searchManagementRequestOptions As SearchManagementRequestOptions = Nothing) As AdminKeyResult
Parameters
- operations
- IAdminKeysOperations
The operations group for this extension method.
- 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 Cognitive 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'
- searchManagementRequestOptions
- SearchManagementRequestOptions
Additional parameters for the operation
Returns
Applies to
Azure SDK for .NET