共用方式為


CommunicationServiceResource.RegenerateKeyAsync 方法

定義

多載

RegenerateKeyAsync(RegenerateCommunicationServiceKeyContent, CancellationToken)

重新產生 CommunicationService 存取金鑰。 PrimaryKey 和 SecondaryKey 無法同時重新產生。

  • 要求路徑/訂用帳戶/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Communication/communicationServices/{communicationServiceName}/regenerateKey
  • 作業IdCommunicationServices_RegenerateKey
RegenerateKeyAsync(WaitUntil, RegenerateCommunicationServiceKeyContent, CancellationToken)

重新產生 CommunicationService 存取金鑰。 PrimaryKey 和 SecondaryKey 無法同時重新產生。

  • 要求路徑/訂用帳戶/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Communication/communicationServices/{communicationServiceName}/regenerateKey
  • 作業IdCommunicationServices_RegenerateKey

RegenerateKeyAsync(RegenerateCommunicationServiceKeyContent, CancellationToken)

重新產生 CommunicationService 存取金鑰。 PrimaryKey 和 SecondaryKey 無法同時重新產生。

  • 要求路徑/訂用帳戶/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Communication/communicationServices/{communicationServiceName}/regenerateKey
  • 作業IdCommunicationServices_RegenerateKey
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))

參數

content
RegenerateCommunicationServiceKeyContent

描述重新產生金鑰作業的參數。

cancellationToken
CancellationToken

要使用的取消權杖。

傳回

例外狀況

content 為 null。

適用於

RegenerateKeyAsync(WaitUntil, RegenerateCommunicationServiceKeyContent, CancellationToken)

重新產生 CommunicationService 存取金鑰。 PrimaryKey 和 SecondaryKey 無法同時重新產生。

  • 要求路徑/訂用帳戶/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Communication/communicationServices/{communicationServiceName}/regenerateKey
  • 作業IdCommunicationServices_RegenerateKey
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))

參數

waitUntil
WaitUntil

Completed 如果 方法應該等候傳回,直到服務上長時間執行的作業完成為止; Started 如果它應該在啟動作業之後傳回,則為 。 如需長時間執行作業的詳細資訊,請參閱 Azure.Core Long-Running 作業範例

content
RegenerateCommunicationServiceKeyContent

描述重新產生金鑰作業的參數。

cancellationToken
CancellationToken

要使用的取消權杖。

傳回

例外狀況

content 為 null。

適用於