Sdílet prostřednictvím


CommunicationServiceResource.RegenerateKeyAsync Metoda

Definice

Přetížení

RegenerateKeyAsync(RegenerateCommunicationServiceKeyContent, CancellationToken)

Znovu vygenerujte přístupový klíč služby CommunicationService. PrimaryKey a SecondaryKey nelze vygenerovat současně.

  • Cesta žádosti/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Communication/communicationServices/{communicationServiceName}/regenerateKey
  • IdCommunicationServices_RegenerateKey operace
RegenerateKeyAsync(WaitUntil, RegenerateCommunicationServiceKeyContent, CancellationToken)

Znovu vygenerujte přístupový klíč služby CommunicationService. PrimaryKey a SecondaryKey nelze vygenerovat současně.

  • Cesta žádosti/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Communication/communicationServices/{communicationServiceName}/regenerateKey
  • IdCommunicationServices_RegenerateKey operace

RegenerateKeyAsync(RegenerateCommunicationServiceKeyContent, CancellationToken)

Znovu vygenerujte přístupový klíč služby CommunicationService. PrimaryKey a SecondaryKey nelze vygenerovat současně.

  • Cesta žádosti/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Communication/communicationServices/{communicationServiceName}/regenerateKey
  • IdCommunicationServices_RegenerateKey operace
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))

Parametry

content
RegenerateCommunicationServiceKeyContent

Parametr, který popisuje operaci opětovného vygenerování klíče.

cancellationToken
CancellationToken

Token zrušení, který se má použít.

Návraty

Výjimky

content je null.

Platí pro

RegenerateKeyAsync(WaitUntil, RegenerateCommunicationServiceKeyContent, CancellationToken)

Znovu vygenerujte přístupový klíč služby CommunicationService. PrimaryKey a SecondaryKey nelze vygenerovat současně.

  • Cesta žádosti/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Communication/communicationServices/{communicationServiceName}/regenerateKey
  • IdCommunicationServices_RegenerateKey operace
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))

Parametry

waitUntil
WaitUntil

Completed pokud by metoda měla počkat na vrácení, dokud se ve službě nedokončí dlouhotrvající operace; Started pokud se má vrátit po spuštění operace. Další informace o dlouhotrvajících operacích najdete v ukázkách operací azure.Core Long-Running.

content
RegenerateCommunicationServiceKeyContent

Parametr, který popisuje operaci opětovného vygenerování klíče.

cancellationToken
CancellationToken

Token zrušení, který se má použít.

Návraty

Výjimky

content je null.

Platí pro