你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

BotResource.GetBotChannelWithRegenerateKeysAsync 方法

定义

重新生成密钥,并为特定 BotService 资源的 DirectLine 通道返回密钥

  • 请求路径/订阅/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BotService/botServices/{resourceName}/channels/{channelName}/regeneratekeys
  • 操作IdDirectLine_RegenerateKeys
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))

参数

channelName
RegenerateKeysBotChannelName

要为其重新生成密钥的通道资源的名称。

content
BotChannelRegenerateKeysContent

要为创建的机器人提供的参数。

cancellationToken
CancellationToken

要使用的取消标记。

返回

例外

content 为 null。

适用于