Compartir a través de


SecurityCenterLocationResource.GetSubscriptionSecurityAlert Método

Definición

Obtener una alerta asociada a una suscripción

  • Ruta de acceso de solicitud/suscripciones/{subscriptionId}/providers/Microsoft.Security/locations/{ascLocation}/alerts/{alertName}
  • IdAlerts_GetSubscriptionLevel de operaciones
public virtual Azure.Response<Azure.ResourceManager.SecurityCenter.SubscriptionSecurityAlertResource> GetSubscriptionSecurityAlert (string alertName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetSubscriptionSecurityAlert : string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.SecurityCenter.SubscriptionSecurityAlertResource>
override this.GetSubscriptionSecurityAlert : string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.SecurityCenter.SubscriptionSecurityAlertResource>
Public Overridable Function GetSubscriptionSecurityAlert (alertName As String, Optional cancellationToken As CancellationToken = Nothing) As Response(Of SubscriptionSecurityAlertResource)

Parámetros

alertName
String

Nombre del objeto de alerta.

cancellationToken
CancellationToken

Token de cancelación que se va a usar.

Devoluciones

Excepciones

alertName es una cadena vacía y se espera que no esté vacía.

alertName es null.

Se aplica a