Partager via


ActionGroupResource.GetNotificationStatusAsync Méthode

Définition

Obtenir les notifications de test par l’ID de notification

  • Chemin de la demande/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/actionGroups/{actionGroupName}/notificationStatus/{notificationId}
  • IdActionGroups_GetTestNotificationsAtActionGroupResourceLevel d’opération
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Monitor.Models.NotificationStatus>> GetNotificationStatusAsync (string notificationId, System.Threading.CancellationToken cancellationToken = default);
abstract member GetNotificationStatusAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Monitor.Models.NotificationStatus>>
override this.GetNotificationStatusAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Monitor.Models.NotificationStatus>>
Public Overridable Function GetNotificationStatusAsync (notificationId As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of NotificationStatus))

Paramètres

notificationId
String

ID de notification.

cancellationToken
CancellationToken

Jeton d’annulation à utiliser.

Retours

Exceptions

notificationId est une chaîne vide et devait être non vide.

notificationId a la valeur null.

S’applique à