Partager via


SearchServiceResource.RegenerateAdminKeyAsync Méthode

Définition

Régénère la clé API d’administration primaire ou secondaire. Vous ne pouvez régénérer qu’une seule clé à la fois.

  • Chemin de la demande/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}/regenerateAdminKey/{keyKind}
  • IdAdminKeys_Regenerate d’opération
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Search.Models.SearchServiceAdminKeyResult>> RegenerateAdminKeyAsync (Azure.ResourceManager.Search.Models.SearchServiceAdminKeyKind keyKind, Azure.ResourceManager.Search.Models.SearchManagementRequestOptions searchManagementRequestOptions = default, System.Threading.CancellationToken cancellationToken = default);
abstract member RegenerateAdminKeyAsync : Azure.ResourceManager.Search.Models.SearchServiceAdminKeyKind * Azure.ResourceManager.Search.Models.SearchManagementRequestOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Search.Models.SearchServiceAdminKeyResult>>
override this.RegenerateAdminKeyAsync : Azure.ResourceManager.Search.Models.SearchServiceAdminKeyKind * Azure.ResourceManager.Search.Models.SearchManagementRequestOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Search.Models.SearchServiceAdminKeyResult>>
Public Overridable Function RegenerateAdminKeyAsync (keyKind As SearchServiceAdminKeyKind, Optional searchManagementRequestOptions As SearchManagementRequestOptions = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of SearchServiceAdminKeyResult))

Paramètres

keyKind
SearchServiceAdminKeyKind

Spécifie la clé à régénérer. Les valeurs valides incluent « principal » et « secondaire ».

searchManagementRequestOptions
SearchManagementRequestOptions

Groupe de paramètres.

cancellationToken
CancellationToken

Jeton d’annulation à utiliser.

Retours

S’applique à