다음을 통해 공유


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입니다.

적용 대상