ActionGroupResource.CreateNotificationsAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Send test notifications to a set of provided receivers
- Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/actionGroups/{actionGroupName}/createNotifications
- Operation Id: ActionGroups_CreateNotificationsAtActionGroupResourceLevel
- Default Api Version: 2023-01-01
- Resource: ActionGroupResource
public virtual System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Monitor.Models.NotificationStatus>> CreateNotificationsAsync (Azure.WaitUntil waitUntil, Azure.ResourceManager.Monitor.Models.NotificationContent content, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateNotificationsAsync : Azure.WaitUntil * Azure.ResourceManager.Monitor.Models.NotificationContent * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Monitor.Models.NotificationStatus>>
override this.CreateNotificationsAsync : Azure.WaitUntil * Azure.ResourceManager.Monitor.Models.NotificationContent * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Monitor.Models.NotificationStatus>>
Public Overridable Function CreateNotificationsAsync (waitUntil As WaitUntil, content As NotificationContent, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ArmOperation(Of NotificationStatus))
Parameters
- waitUntil
- WaitUntil
Completed if the method should wait to return until the long-running operation has completed on the service; Started if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples.
- content
- NotificationContent
The notification request body which includes the contact details.
- cancellationToken
- CancellationToken
The cancellation token to use.
Returns
Exceptions
content
is null.