Partilhar via


SecurityCenterLocationResource.GetSubscriptionSecurityAlertAsync Método

Definição

Obter um alerta associado a uma assinatura

  • Caminho da Solicitação/assinaturas/{subscriptionId}/providers/Microsoft.Security/locations/{ascLocation}/alerts/{alertName}
  • IdAlerts_GetSubscriptionLevel de operação
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.SecurityCenter.SubscriptionSecurityAlertResource>> GetSubscriptionSecurityAlertAsync (string alertName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetSubscriptionSecurityAlertAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.SecurityCenter.SubscriptionSecurityAlertResource>>
override this.GetSubscriptionSecurityAlertAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.SecurityCenter.SubscriptionSecurityAlertResource>>
Public Overridable Function GetSubscriptionSecurityAlertAsync (alertName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of SubscriptionSecurityAlertResource))

Parâmetros

alertName
String

Nome do objeto de alerta.

cancellationToken
CancellationToken

O token de cancelamento a ser usado.

Retornos

Exceções

alertName é uma cadeia de caracteres vazia e era esperado que não estivesse vazio.

alertName é nulo.

Aplica-se a