Partilhar via


SecurityCenterLocationResource.GetSubscriptionSecurityAlert Método

Definição

Obter um alerta associado a uma assinatura

  • Caminho da Solicitação/assinaturas/{subscriptionId}/providers/Microsoft.Security/locations/{ascLocation}/alerts/{alertName}
  • Operação IdAlerts_GetSubscriptionLevel
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

Nome do objeto de alerta.

cancellationToken
CancellationToken

O token de cancelamento a ser usado.

Retornos

Exceções

alertName é uma cadeia de caracteres vazia e esperava-se que não estivesse vazia.

alertName é nulo.

Aplica-se a