Share via


OperationalInsightsWorkspaceSecurityInsightsResource.GetSecurityInsightsAutomationRuleAsync Method

Definition

Gets the automation rule.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/automationRules/{automationRuleId}
  • Operation Id: AutomationRules_Get
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.SecurityInsights.SecurityInsightsAutomationRuleResource>> GetSecurityInsightsAutomationRuleAsync (string automationRuleId, System.Threading.CancellationToken cancellationToken = default);
abstract member GetSecurityInsightsAutomationRuleAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.SecurityInsights.SecurityInsightsAutomationRuleResource>>
override this.GetSecurityInsightsAutomationRuleAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.SecurityInsights.SecurityInsightsAutomationRuleResource>>
Public Overridable Function GetSecurityInsightsAutomationRuleAsync (automationRuleId As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of SecurityInsightsAutomationRuleResource))

Parameters

automationRuleId
String

Automation rule ID.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

automationRuleId is null.

automationRuleId is an empty string, and was expected to be non-empty.

Applies to