Compartilhar via


SecurityInsightsAlertRuleCollection.Get(String, CancellationToken) 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 Azure.Response<Azure.ResourceManager.SecurityInsights.SecurityInsightsAlertRuleResource> Get (string ruleId, System.Threading.CancellationToken cancellationToken = default);
abstract member Get : string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.SecurityInsights.SecurityInsightsAlertRuleResource>
override this.Get : string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.SecurityInsights.SecurityInsightsAlertRuleResource>
Public Overridable Function Get (ruleId As String, Optional cancellationToken As CancellationToken = Nothing) As 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