Language

MockableSecurityInsightsArmClient.GetSecurityInsightsAutomationRule Method

Definition

Gets the automation rule.

public virtual Azure.Response<Azure.ResourceManager.SecurityInsights.SecurityInsightsAutomationRuleResource> GetSecurityInsightsAutomationRule(Azure.Core.ResourceIdentifier scope, string automationRuleId, System.Threading.CancellationToken cancellationToken = default);
abstract member GetSecurityInsightsAutomationRule : Azure.Core.ResourceIdentifier * string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.SecurityInsights.SecurityInsightsAutomationRuleResource>
override this.GetSecurityInsightsAutomationRule : Azure.Core.ResourceIdentifier * string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.SecurityInsights.SecurityInsightsAutomationRuleResource>
Public Overridable Function GetSecurityInsightsAutomationRule (scope As ResourceIdentifier, automationRuleId As String, Optional cancellationToken As CancellationToken = Nothing) As Response(Of SecurityInsightsAutomationRuleResource)

Parameters

scope
ResourceIdentifier

The scope of the resource collection to get.

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