Compartilhar via


CommunicationServiceResource.RegenerateKey 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
  • Operação IdCommunicationServices_RegenerateKey
public virtual Azure.Response<Azure.ResourceManager.Communication.Models.CommunicationServiceKeys> RegenerateKey (Azure.ResourceManager.Communication.Models.RegenerateCommunicationServiceKeyContent content, System.Threading.CancellationToken cancellationToken = default);
abstract member RegenerateKey : Azure.ResourceManager.Communication.Models.RegenerateCommunicationServiceKeyContent * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.Communication.Models.CommunicationServiceKeys>
override this.RegenerateKey : Azure.ResourceManager.Communication.Models.RegenerateCommunicationServiceKeyContent * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.Communication.Models.CommunicationServiceKeys>
Public Overridable Function RegenerateKey (content As RegenerateCommunicationServiceKeyContent, Optional cancellationToken As CancellationToken = Nothing) As 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