SqlVulnerabilityAssessmentBaselineRuleCollection.CreateOrUpdate Method

Definition

Creates a Baseline for a rule in a database. Will overwrite any previously existing results.

  • Request Path: /{resourceId}/providers/Microsoft.Security/sqlVulnerabilityAssessments/default/baselineRules/{ruleId}
  • Operation Id: SqlVulnerabilityAssessmentBaselineRules_CreateOrUpdate
  • Default Api Version: 2023-02-01-preview
  • Resource: SqlVulnerabilityAssessmentBaselineRuleResource
public virtual Azure.ResourceManager.ArmOperation<Azure.ResourceManager.SecurityCenter.SqlVulnerabilityAssessmentBaselineRuleResource> CreateOrUpdate (Azure.WaitUntil waitUntil, string ruleId, Guid workspaceId, Azure.ResourceManager.SecurityCenter.Models.SqlVulnerabilityAssessmentBaselineRuleCreateOrUpdateContent content, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdate : Azure.WaitUntil * string * Guid * Azure.ResourceManager.SecurityCenter.Models.SqlVulnerabilityAssessmentBaselineRuleCreateOrUpdateContent * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.SecurityCenter.SqlVulnerabilityAssessmentBaselineRuleResource>
override this.CreateOrUpdate : Azure.WaitUntil * string * Guid * Azure.ResourceManager.SecurityCenter.Models.SqlVulnerabilityAssessmentBaselineRuleCreateOrUpdateContent * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.SecurityCenter.SqlVulnerabilityAssessmentBaselineRuleResource>
Public Overridable Function CreateOrUpdate (waitUntil As WaitUntil, ruleId As String, workspaceId As Guid, content As SqlVulnerabilityAssessmentBaselineRuleCreateOrUpdateContent, Optional cancellationToken As CancellationToken = Nothing) As ArmOperation(Of SqlVulnerabilityAssessmentBaselineRuleResource)

Parameters

waitUntil
WaitUntil

Completed if the method should wait to return until the long-running operation has completed on the service; Started if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples.

ruleId
String

The rule Id.

workspaceId
Guid

The workspace Id.

content
SqlVulnerabilityAssessmentBaselineRuleCreateOrUpdateContent

The baseline results for this rule.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

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

ruleId or content is null.

Applies to