Delen via


CommunicationServiceResource.RegenerateKeyAsync Methode

Definitie

Overloads

RegenerateKeyAsync(RegenerateCommunicationServiceKeyContent, CancellationToken)

Genereer de CommunicationService-toegangssleutel opnieuw. PrimaryKey en SecondaryKey kunnen niet tegelijkertijd opnieuw worden gegenereerd.

  • Aanvraagpad/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Communication/communicationServices/{communicationServiceName}/regenerateKey
  • Bewerkings IdCommunicationServices_RegenerateKey
RegenerateKeyAsync(WaitUntil, RegenerateCommunicationServiceKeyContent, CancellationToken)

Genereer de CommunicationService-toegangssleutel opnieuw. PrimaryKey en SecondaryKey kunnen niet tegelijkertijd opnieuw worden gegenereerd.

  • Aanvraagpad/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Communication/communicationServices/{communicationServiceName}/regenerateKey
  • Bewerkings IdCommunicationServices_RegenerateKey

RegenerateKeyAsync(RegenerateCommunicationServiceKeyContent, CancellationToken)

Genereer de CommunicationService-toegangssleutel opnieuw. PrimaryKey en SecondaryKey kunnen niet tegelijkertijd opnieuw worden gegenereerd.

  • Aanvraagpad/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Communication/communicationServices/{communicationServiceName}/regenerateKey
  • Bewerkings 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))

Parameters

content
RegenerateCommunicationServiceKeyContent

Parameter die de bewerking Sleutel opnieuw genereren beschrijft.

cancellationToken
CancellationToken

Het annuleringstoken dat moet worden gebruikt.

Retouren

Uitzonderingen

content is null.

Van toepassing op

RegenerateKeyAsync(WaitUntil, RegenerateCommunicationServiceKeyContent, CancellationToken)

Genereer de CommunicationService-toegangssleutel opnieuw. PrimaryKey en SecondaryKey kunnen niet tegelijkertijd opnieuw worden gegenereerd.

  • Aanvraagpad/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Communication/communicationServices/{communicationServiceName}/regenerateKey
  • Bewerkings 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))

Parameters

waitUntil
WaitUntil

Completed als de methode moet wachten met retourneren totdat de langlopende bewerking op de service is voltooid; Started als deze moet worden geretourneerd na het starten van de bewerking. Zie Voorbeelden van Azure.Core Long-Running-bewerkingen voor meer informatie over langlopende bewerkingen.

content
RegenerateCommunicationServiceKeyContent

Parameter die de bewerking Sleutel opnieuw genereren beschrijft.

cancellationToken
CancellationToken

Het annuleringstoken dat moet worden gebruikt.

Retouren

Uitzonderingen

content is null.

Van toepassing op