Share via


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