ScheduledQueryRulesOperations.CreateOrUpdateAsync Method

Definition

Creates or updates an log search rule.

public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Insights.Models.LogSearchRuleResource>> CreateOrUpdateAsync (string resourceGroupName, string ruleName, Azure.ResourceManager.Insights.Models.LogSearchRuleResource parameters, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdateAsync : string * string * Azure.ResourceManager.Insights.Models.LogSearchRuleResource * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Insights.Models.LogSearchRuleResource>>
override this.CreateOrUpdateAsync : string * string * Azure.ResourceManager.Insights.Models.LogSearchRuleResource * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Insights.Models.LogSearchRuleResource>>
Public Overridable Function CreateOrUpdateAsync (resourceGroupName As String, ruleName As String, parameters As LogSearchRuleResource, 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.

parameters
LogSearchRuleResource

The parameters of the rule to create or update.

cancellationToken
System.Threading.CancellationToken

The cancellation token to use.

Returns

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

Applies to