Language

TenantActionGroupResource.CreateNotificationsAtTenantActionGroupResourceLevelAsync Method

Definition

Send test notifications to a set of provided receivers

  • Request Path. : /providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Insights/tenantActionGroups/{tenantActionGroupName}/createNotifications.
  • Operation Id. : TenantActionGroups_CreateNotificationsAtTenantActionGroupResourceLevel.
  • Default Api Version. : 2023-05-01-preview.
  • Resource. : TenantActionGroupResource.
public virtual System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Monitor.Models.TestNotificationDetailsResult>> CreateNotificationsAtTenantActionGroupResourceLevelAsync(Azure.WaitUntil waitUntil, string xMsClientTenantId, Azure.ResourceManager.Monitor.Models.TenantNotificationContent content, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateNotificationsAtTenantActionGroupResourceLevelAsync : Azure.WaitUntil * string * Azure.ResourceManager.Monitor.Models.TenantNotificationContent * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Monitor.Models.TestNotificationDetailsResult>>
override this.CreateNotificationsAtTenantActionGroupResourceLevelAsync : Azure.WaitUntil * string * Azure.ResourceManager.Monitor.Models.TenantNotificationContent * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Monitor.Models.TestNotificationDetailsResult>>
Public Overridable Function CreateNotificationsAtTenantActionGroupResourceLevelAsync (waitUntil As WaitUntil, xMsClientTenantId As String, content As TenantNotificationContent, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ArmOperation(Of TestNotificationDetailsResult))

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.

xMsClientTenantId
String

The tenant ID of the client making the request.

content
TenantNotificationContent

The notification request body which includes the contact details.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

xMsClientTenantId or content is null.

xMsClientTenantId is an empty string, and was expected to be non-empty.

Applies to