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

NotificationChannels interface

表示 NotificationChannels 的接口。

方法

createOrUpdate(string, string, string, NotificationChannel, NotificationChannelsCreateOrUpdateOptionalParams)

创建或替换现有通知通道。

delete(string, string, string, NotificationChannelsDeleteOptionalParams)

删除通知通道。

get(string, string, string, NotificationChannelsGetOptionalParams)

获取通知通道。

list(string, string, NotificationChannelsListOptionalParams)

列出给定实验室中的通知通道。

notify(string, string, string, NotifyParameters, NotificationChannelsNotifyOptionalParams)

将通知发送到提供的通道。

update(string, string, string, NotificationChannelFragment, NotificationChannelsUpdateOptionalParams)

允许修改通知通道的标记。 将忽略所有其他属性。

方法详细信息

createOrUpdate(string, string, string, NotificationChannel, NotificationChannelsCreateOrUpdateOptionalParams)

创建或替换现有通知通道。

function createOrUpdate(resourceGroupName: string, labName: string, name: string, notificationChannel: NotificationChannel, options?: NotificationChannelsCreateOrUpdateOptionalParams): Promise<NotificationChannel>

参数

resourceGroupName

string

资源组的名称。

labName

string

实验室的名称。

name

string

通知通道的名称。

notificationChannel
NotificationChannel

通知。

返回

delete(string, string, string, NotificationChannelsDeleteOptionalParams)

删除通知通道。

function delete(resourceGroupName: string, labName: string, name: string, options?: NotificationChannelsDeleteOptionalParams): Promise<void>

参数

resourceGroupName

string

资源组的名称。

labName

string

实验室的名称。

name

string

通知通道的名称。

返回

Promise<void>

get(string, string, string, NotificationChannelsGetOptionalParams)

获取通知通道。

function get(resourceGroupName: string, labName: string, name: string, options?: NotificationChannelsGetOptionalParams): Promise<NotificationChannel>

参数

resourceGroupName

string

资源组的名称。

labName

string

实验室的名称。

name

string

通知通道的名称。

options
NotificationChannelsGetOptionalParams

选项参数。

返回

list(string, string, NotificationChannelsListOptionalParams)

列出给定实验室中的通知通道。

function list(resourceGroupName: string, labName: string, options?: NotificationChannelsListOptionalParams): PagedAsyncIterableIterator<NotificationChannel, NotificationChannel[], PageSettings>

参数

resourceGroupName

string

资源组的名称。

labName

string

实验室的名称。

options
NotificationChannelsListOptionalParams

选项参数。

返回

notify(string, string, string, NotifyParameters, NotificationChannelsNotifyOptionalParams)

将通知发送到提供的通道。

function notify(resourceGroupName: string, labName: string, name: string, notifyParameters: NotifyParameters, options?: NotificationChannelsNotifyOptionalParams): Promise<void>

参数

resourceGroupName

string

资源组的名称。

labName

string

实验室的名称。

name

string

通知通道的名称。

notifyParameters
NotifyParameters

用于生成通知的属性。

返回

Promise<void>

update(string, string, string, NotificationChannelFragment, NotificationChannelsUpdateOptionalParams)

允许修改通知通道的标记。 将忽略所有其他属性。

function update(resourceGroupName: string, labName: string, name: string, notificationChannel: NotificationChannelFragment, options?: NotificationChannelsUpdateOptionalParams): Promise<NotificationChannel>

参数

resourceGroupName

string

资源组的名称。

labName

string

实验室的名称。

name

string

通知通道的名称。

notificationChannel
NotificationChannelFragment

通知。

返回