Language

MockableSecurityInsightsArmClient.GetSecurityInsightsAlertRuleTemplateAsync Method

Definition

Gets the alert rule template.

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

Parameters

scope
ResourceIdentifier

The scope of the resource collection to get.

alertRuleTemplateId
String

Alert rule template ID.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

alertRuleTemplateId is null.

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

Applies to