Share via


OperationalInsightsWorkspaceSecurityInsightsResource.GetSecurityInsightsAutomationRule 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
  • Default Api Version: 2024-01-01-preview
  • Resource: SecurityInsightsAutomationRuleResource
public virtual Azure.Response<Azure.ResourceManager.SecurityInsights.SecurityInsightsAutomationRuleResource> GetSecurityInsightsAutomationRule (string automationRuleId, System.Threading.CancellationToken cancellationToken = default);
abstract member GetSecurityInsightsAutomationRule : string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.SecurityInsights.SecurityInsightsAutomationRuleResource>
override this.GetSecurityInsightsAutomationRule : string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.SecurityInsights.SecurityInsightsAutomationRuleResource>
Public Overridable Function GetSecurityInsightsAutomationRule (automationRuleId As String, Optional cancellationToken As CancellationToken = Nothing) As 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