Share via


SqlVulnerabilityAssessmentBaselineRuleResource.Update 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> Update (Azure.WaitUntil waitUntil, Guid workspaceId, Azure.ResourceManager.SecurityCenter.Models.SqlVulnerabilityAssessmentBaselineRuleCreateOrUpdateContent content, System.Threading.CancellationToken cancellationToken = default);
abstract member Update : Azure.WaitUntil * Guid * Azure.ResourceManager.SecurityCenter.Models.SqlVulnerabilityAssessmentBaselineRuleCreateOrUpdateContent * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.SecurityCenter.SqlVulnerabilityAssessmentBaselineRuleResource>
override this.Update : Azure.WaitUntil * Guid * Azure.ResourceManager.SecurityCenter.Models.SqlVulnerabilityAssessmentBaselineRuleCreateOrUpdateContent * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.SecurityCenter.SqlVulnerabilityAssessmentBaselineRuleResource>
Public Overridable Function Update (waitUntil As WaitUntil, 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.

workspaceId
Guid

The workspace Id.

content
SqlVulnerabilityAssessmentBaselineRuleCreateOrUpdateContent

The baseline results for this rule.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

content is null.

Applies to