SqlVulnerabilityAssessmentSettingsResource.AddAsync Method

Definition

Set a list of baseline rules. Will overwrite any previously existing results (for all rules).

  • Request Path. : /{resourceId}/providers/Microsoft.Security/sqlVulnerabilityAssessments/default/baselineRules.
  • Operation Id. : SqlVulnerabilityAssessmentBaselineRules_Add.
  • Default Api Version. : 2026-04-01-preview.
  • Resource. : SqlVulnerabilityAssessmentSettingsResource.
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.SecurityCenter.Models.RulesResults>> AddAsync(Azure.ResourceManager.SecurityCenter.Models.RulesResultsContent content = default, string databaseName = default, System.Threading.CancellationToken cancellationToken = default);
abstract member AddAsync : Azure.ResourceManager.SecurityCenter.Models.RulesResultsContent * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.SecurityCenter.Models.RulesResults>>
override this.AddAsync : Azure.ResourceManager.SecurityCenter.Models.RulesResultsContent * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.SecurityCenter.Models.RulesResults>>
Public Overridable Function AddAsync (Optional content As RulesResultsContent = Nothing, Optional databaseName As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of RulesResults))

Parameters

content
RulesResultsContent

The content of the action request.

databaseName
String

The name of the database to assess. Required when the API is called on the parent resource (e.g., server level) rather than on a specific database resource, since the database name is not part of the resource URI. This is the only way to assess system databases (e.g., master), which cannot be referenced directly in the resource URI.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Applies to