你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

AdminKeysOperationsExtensions.RegenerateAsync 方法

定义

重新生成主要或辅助管理 API 密钥。 每次你只能重新生成一个密钥。 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)

参数

operations
IAdminKeysOperations

此扩展方法的操作组。

resourceGroupName
String

当前订阅中的资源组的名称。 可以从 Azure 资源管理器 API 或门户获取此值。

searchServiceName
String

与指定资源组关联的Azure 认知搜索服务的名称。

keyKind
AdminKeyKind

指定要重新生成哪个密钥。 有效值包括“primary”和“secondary”。 可能的值包括:“primary”、“secondary”

searchManagementRequestOptions
SearchManagementRequestOptions

操作的其他参数

cancellationToken
CancellationToken

取消标记。

返回

适用于