Partager via


NotificationChannels interface

Interface representing a NotificationChannels.

Methods

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

Create or replace an existing notification channel.

delete(string, string, string, NotificationChannelsDeleteOptionalParams)

Delete notification channel.

get(string, string, string, NotificationChannelsGetOptionalParams)

Get notification channel.

list(string, string, NotificationChannelsListOptionalParams)

List notification channels in a given lab.

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

Send notification to provided channel.

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

Allows modifying tags of notification channels. All other properties will be ignored.

Method Details

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

Create or replace an existing notification channel.

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

Parameters

resourceGroupName

string

The name of the resource group.

labName

string

The name of the lab.

name

string

The name of the notification channel.

notificationChannel
NotificationChannel

A notification.

options
NotificationChannelsCreateOrUpdateOptionalParams

The options parameters.

Returns

delete(string, string, string, NotificationChannelsDeleteOptionalParams)

Delete notification channel.

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

Parameters

resourceGroupName

string

The name of the resource group.

labName

string

The name of the lab.

name

string

The name of the notification channel.

options
NotificationChannelsDeleteOptionalParams

The options parameters.

Returns

Promise<void>

get(string, string, string, NotificationChannelsGetOptionalParams)

Get notification channel.

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

Parameters

resourceGroupName

string

The name of the resource group.

labName

string

The name of the lab.

name

string

The name of the notification channel.

options
NotificationChannelsGetOptionalParams

The options parameters.

Returns

list(string, string, NotificationChannelsListOptionalParams)

List notification channels in a given lab.

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

Parameters

resourceGroupName

string

The name of the resource group.

labName

string

The name of the lab.

options
NotificationChannelsListOptionalParams

The options parameters.

Returns

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

Send notification to provided channel.

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

Parameters

resourceGroupName

string

The name of the resource group.

labName

string

The name of the lab.

name

string

The name of the notification channel.

notifyParameters
NotifyParameters

Properties for generating a Notification.

options
NotificationChannelsNotifyOptionalParams

The options parameters.

Returns

Promise<void>

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

Allows modifying tags of notification channels. All other properties will be ignored.

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

Parameters

resourceGroupName

string

The name of the resource group.

labName

string

The name of the lab.

name

string

The name of the notification channel.

notificationChannel
NotificationChannelFragment

A notification.

options
NotificationChannelsUpdateOptionalParams

The options parameters.

Returns