ScheduledQueryRulesOperations.GetAsync Method

Definition

Gets an Log Search rule.

public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Insights.Models.LogSearchRuleResource>> GetAsync (string resourceGroupName, string ruleName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetAsync : string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Insights.Models.LogSearchRuleResource>>
override this.GetAsync : string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Insights.Models.LogSearchRuleResource>>
Public Overridable Function GetAsync (resourceGroupName As String, ruleName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of LogSearchRuleResource))

Parameters

resourceGroupName
System.String

The name of the resource group.

ruleName
System.String

The name of the rule.

cancellationToken
System.Threading.CancellationToken

The cancellation token to use.

Returns

System.Threading.Tasks.Task<Response<LogSearchRuleResource>>

Applies to