AdminKeysOperationsExtensions.RegenerateAsync 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 System.Threading.Tasks.Task<Microsoft.Azure.Management.Search.Models.AdminKeyResult> RegenerateAsync (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, System.Threading.CancellationToken cancellationToken = default);
static member RegenerateAsync : Microsoft.Azure.Management.Search.IAdminKeysOperations * string * string * Microsoft.Azure.Management.Search.Models.AdminKeyKind * Microsoft.Azure.Management.Search.Models.SearchManagementRequestOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.Search.Models.AdminKeyResult>
<Extension()>
Public Function RegenerateAsync (operations As IAdminKeysOperations, resourceGroupName As String, searchServiceName As String, keyKind As AdminKeyKind, Optional searchManagementRequestOptions As SearchManagementRequestOptions = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of 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
- cancellationToken
- CancellationToken
The cancellation token.