Notification Channels - Update

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

PATCH https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/notificationchannels/{name}?api-version=2018-09-15

URI Parameters

Name In Required Type Description
labName
path True

string

The name of the lab.

name
path True

string

The name of the notification channel.

resourceGroupName
path True

string

The name of the resource group.

subscriptionId
path True

string

The subscription ID.

api-version
query True

string

Client API version.

Request Body

Name Type Description
tags

object

The tags of the resource.

Responses

Name Type Description
200 OK

NotificationChannel

OK

Other Status Codes

CloudError

BadRequest

Security

azure_auth

OAuth2 Implicit Grant

Type: oauth2
Flow: implicit
Authorization URL: https://login.microsoftonline.com/common/oauth2/authorize

Scopes

Name Description
user_impersonation Access Microsoft Azure

Examples

NotificationChannels_Update

Sample Request

PATCH https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/{labName}/notificationchannels/{notificationChannelName}?api-version=2018-09-15

{}

Sample Response

{
  "properties": {
    "webHookUrl": "{webhookUrl}",
    "emailRecipient": "{email}",
    "notificationLocale": "en",
    "description": "Integration configured for auto-shutdown",
    "events": [
      {
        "eventName": "AutoShutdown"
      }
    ],
    "createdDate": "2021-01-05T02:14:05.2392034+00:00",
    "provisioningState": "Succeeded",
    "uniqueIdentifier": "{uniqueIdentifier}"
  },
  "id": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/{labName}/notificationChannels/{notificationChannelName}",
  "name": "{notificationChannelName}",
  "type": "Microsoft.DevTestLab/labs/notificationChannels",
  "location": "{location}",
  "tags": {
    "tagName1": "tagValue1"
  }
}

Definitions

Name Description
CloudError

Error from a REST request.

CloudErrorBody

Body of an error from a REST request.

Event

An event to be notified for.

NotificationChannel

A notification.

NotificationChannelEventType

The event type for which this notification is enabled (i.e. AutoShutdown, Cost)

NotificationChannelFragment

A notification.

CloudError

Error from a REST request.

Name Type Description
error

CloudErrorBody

The cloud error that occurred

CloudErrorBody

Body of an error from a REST request.

Name Type Description
code

string

The error code.

details

CloudErrorBody[]

Inner errors.

message

string

The error message.

target

string

The error target.

Event

An event to be notified for.

Name Type Description
eventName

NotificationChannelEventType

The event type for which this notification is enabled (i.e. AutoShutdown, Cost)

NotificationChannel

A notification.

Name Type Description
id

string

The identifier of the resource.

location

string

The location of the resource.

name

string

The name of the resource.

properties.createdDate

string

The creation date of the notification channel.

properties.description

string

Description of notification.

properties.emailRecipient

string

The email recipient to send notifications to (can be a list of semi-colon separated email addresses).

properties.events

Event[]

The list of event for which this notification is enabled.

properties.notificationLocale

string

The locale to use when sending a notification (fallback for unsupported languages is EN).

properties.provisioningState

string

The provisioning status of the resource.

properties.uniqueIdentifier

string

The unique immutable identifier of a resource (Guid).

properties.webHookUrl

string

The webhook URL to send notifications to.

tags

object

The tags of the resource.

type

string

The type of the resource.

NotificationChannelEventType

The event type for which this notification is enabled (i.e. AutoShutdown, Cost)

Name Type Description
AutoShutdown

string

Cost

string

NotificationChannelFragment

A notification.

Name Type Description
tags

object

The tags of the resource.