Bagikan melalui


SecurityInsightsAutomationRuleCollection.GetAsync 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>> GetAsync (string automationRuleId, System.Threading.CancellationToken cancellationToken = default);
abstract member GetAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.SecurityInsights.SecurityInsightsAutomationRuleResource>>
override this.GetAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.SecurityInsights.SecurityInsightsAutomationRuleResource>>
Public Overridable Function GetAsync (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 an empty string, and was expected to be non-empty.

automationRuleId is null.

Applies to