Condividi tramite


CommunicationServiceResource.RegenerateKeyAsync Metodo

Definizione

Overload

RegenerateKeyAsync(RegenerateCommunicationServiceKeyContent, CancellationToken)

Rigenerare la chiave di accesso CommunicationService. PrimaryKey e SecondaryKey non possono essere rigenerati contemporaneamente.

  • Request Path/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Communication/communicationServices/{communicationServiceName}/regenerateKey
  • IdCommunicationServices_RegenerateKey dell'operazione
RegenerateKeyAsync(WaitUntil, RegenerateCommunicationServiceKeyContent, CancellationToken)

Rigenerare la chiave di accesso CommunicationService. PrimaryKey e SecondaryKey non possono essere rigenerati contemporaneamente.

  • Request Path/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Communication/communicationServices/{communicationServiceName}/regenerateKey
  • IdCommunicationServices_RegenerateKey dell'operazione

RegenerateKeyAsync(RegenerateCommunicationServiceKeyContent, CancellationToken)

Rigenerare la chiave di accesso CommunicationService. PrimaryKey e SecondaryKey non possono essere rigenerati contemporaneamente.

  • Request Path/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Communication/communicationServices/{communicationServiceName}/regenerateKey
  • IdCommunicationServices_RegenerateKey dell'operazione
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))

Parametri

content
RegenerateCommunicationServiceKeyContent

Parametro che descrive l'operazione Rigenera chiave.

cancellationToken
CancellationToken

Token di annullamento da usare.

Restituisce

Eccezioni

content è null.

Si applica a

RegenerateKeyAsync(WaitUntil, RegenerateCommunicationServiceKeyContent, CancellationToken)

Rigenerare la chiave di accesso CommunicationService. PrimaryKey e SecondaryKey non possono essere rigenerati contemporaneamente.

  • Request Path/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Communication/communicationServices/{communicationServiceName}/regenerateKey
  • IdCommunicationServices_RegenerateKey dell'operazione
public virtual System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Communication.Models.CommunicationServiceKeys>> RegenerateKeyAsync (Azure.WaitUntil waitUntil, Azure.ResourceManager.Communication.Models.RegenerateCommunicationServiceKeyContent content, System.Threading.CancellationToken cancellationToken = default);
abstract member RegenerateKeyAsync : Azure.WaitUntil * Azure.ResourceManager.Communication.Models.RegenerateCommunicationServiceKeyContent * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Communication.Models.CommunicationServiceKeys>>
override this.RegenerateKeyAsync : Azure.WaitUntil * Azure.ResourceManager.Communication.Models.RegenerateCommunicationServiceKeyContent * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Communication.Models.CommunicationServiceKeys>>
Public Overridable Function RegenerateKeyAsync (waitUntil As WaitUntil, content As RegenerateCommunicationServiceKeyContent, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ArmOperation(Of CommunicationServiceKeys))

Parametri

waitUntil
WaitUntil

Completed se il metodo deve attendere il completamento dell'operazione a esecuzione prolungata nel servizio; Started se deve restituire dopo l'avvio dell'operazione. Per altre informazioni sulle operazioni a esecuzione prolungata, vedere Esempi di operazioni di Azure.Core Long-Running.

content
RegenerateCommunicationServiceKeyContent

Parametro che descrive l'operazione Rigenera chiave.

cancellationToken
CancellationToken

Token di annullamento da usare.

Restituisce

Eccezioni

content è null.

Si applica a