ScheduledQueryRulesOperations.CreateOrUpdate Method

Definition

Creates or updates an log search rule.

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

Response<LogSearchRuleResource>

Applies to