Compartilhar via


OperationalInsightsWorkspaceSecurityInsightsResource.GetSecurityInsightsAlertRuleAsync Método

Definição

Obtém a regra de alerta.

  • Caminho da Solicitação/assinaturas/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/alertRules/{ruleId}
  • IdAlertRules_Get de operação
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.SecurityInsights.SecurityInsightsAlertRuleResource>> GetSecurityInsightsAlertRuleAsync (string ruleId, System.Threading.CancellationToken cancellationToken = default);
abstract member GetSecurityInsightsAlertRuleAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.SecurityInsights.SecurityInsightsAlertRuleResource>>
override this.GetSecurityInsightsAlertRuleAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.SecurityInsights.SecurityInsightsAlertRuleResource>>
Public Overridable Function GetSecurityInsightsAlertRuleAsync (ruleId As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of SecurityInsightsAlertRuleResource))

Parâmetros

ruleId
String

ID da regra de alerta.

cancellationToken
CancellationToken

O token de cancelamento a ser usado.

Retornos

Exceções

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

ruleId é nulo.

Aplica-se a