Compartilhar via


CommunicationServiceResource.RegenerateKeyAsync Método

Definição

Regenerar a chave de acesso CommunicationService. PrimaryKey e SecondaryKey não podem ser regenerados ao mesmo tempo.

  • Caminho da Solicitação/assinaturas/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Communication/communicationServices/{communicationServiceName}/regenerateKey
  • IdCommunicationServices_RegenerateKey de operação
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Communication.Models.CommunicationServiceKeys>> RegenerateKeyAsync (Azure.ResourceManager.Communication.Models.RegenerateCommunicationServiceKeyContent content, System.Threading.CancellationToken cancellationToken = default);
abstract member RegenerateKeyAsync : Azure.ResourceManager.Communication.Models.RegenerateCommunicationServiceKeyContent * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Communication.Models.CommunicationServiceKeys>>
override this.RegenerateKeyAsync : Azure.ResourceManager.Communication.Models.RegenerateCommunicationServiceKeyContent * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Communication.Models.CommunicationServiceKeys>>
Public Overridable Function RegenerateKeyAsync (content As RegenerateCommunicationServiceKeyContent, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of CommunicationServiceKeys))

Parâmetros

content
RegenerateCommunicationServiceKeyContent

Parâmetro que descreve a operação Regenerar Chave.

cancellationToken
CancellationToken

O token de cancelamento a ser usado.

Retornos

Exceções

content é nulo.

Aplica-se a