Freigeben über


CognitiveServicesAccountResource.RegenerateKeyAsync Methode

Definition

Generiert den angegebenen Kontoschlüssel für das angegebene Cognitive Services-Konto neu.

  • Request Path/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/regenerateKey
  • Vorgangs-IdAccounts_RegenerateKey
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.CognitiveServices.Models.ServiceAccountApiKeys>> RegenerateKeyAsync (Azure.ResourceManager.CognitiveServices.Models.RegenerateServiceAccountKeyContent content, System.Threading.CancellationToken cancellationToken = default);
abstract member RegenerateKeyAsync : Azure.ResourceManager.CognitiveServices.Models.RegenerateServiceAccountKeyContent * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.CognitiveServices.Models.ServiceAccountApiKeys>>
override this.RegenerateKeyAsync : Azure.ResourceManager.CognitiveServices.Models.RegenerateServiceAccountKeyContent * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.CognitiveServices.Models.ServiceAccountApiKeys>>
Public Overridable Function RegenerateKeyAsync (content As RegenerateServiceAccountKeyContent, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of ServiceAccountApiKeys))

Parameter

content
RegenerateServiceAccountKeyContent

Schlüsselparameter neu generieren.

cancellationToken
CancellationToken

Das zu verwendende Abbruchtoken.

Gibt zurück

Ausnahmen

content ist NULL.

Gilt für: