Compartir a través de


BotResource.GetBotChannelWithRegenerateKeysAsync Método

Definición

Regenera las claves secretas y las devuelve para el canal DirectLine de un recurso botService determinado.

  • Ruta de acceso de solicitud/suscripciones/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BotService/botServices/{resourceName}/channels/{channelName}/regeneratekeys
  • IdDirectLine_RegenerateKeys de operaciones
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.BotService.BotChannelResource>> GetBotChannelWithRegenerateKeysAsync (Azure.ResourceManager.BotService.Models.RegenerateKeysBotChannelName channelName, Azure.ResourceManager.BotService.Models.BotChannelRegenerateKeysContent content, System.Threading.CancellationToken cancellationToken = default);
abstract member GetBotChannelWithRegenerateKeysAsync : Azure.ResourceManager.BotService.Models.RegenerateKeysBotChannelName * Azure.ResourceManager.BotService.Models.BotChannelRegenerateKeysContent * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.BotService.BotChannelResource>>
override this.GetBotChannelWithRegenerateKeysAsync : Azure.ResourceManager.BotService.Models.RegenerateKeysBotChannelName * Azure.ResourceManager.BotService.Models.BotChannelRegenerateKeysContent * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.BotService.BotChannelResource>>
Public Overridable Function GetBotChannelWithRegenerateKeysAsync (channelName As RegenerateKeysBotChannelName, content As BotChannelRegenerateKeysContent, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of BotChannelResource))

Parámetros

channelName
RegenerateKeysBotChannelName

Nombre del recurso de canal para el que se van a volver a generar las claves.

content
BotChannelRegenerateKeysContent

Parámetros que se van a proporcionar para el bot creado.

cancellationToken
CancellationToken

Token de cancelación que se va a usar.

Devoluciones

Excepciones

content es null.

Se aplica a