SqlVulnerabilityAssessmentBaselineRuleCollection.AddRules Method

Definition

Add 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
public virtual Azure.Pageable<Azure.ResourceManager.SecurityCenter.SqlVulnerabilityAssessmentBaselineRuleResource> AddRules (Guid workspaceId, Azure.ResourceManager.SecurityCenter.Models.RulesResultsContent content = default, System.Threading.CancellationToken cancellationToken = default);
abstract member AddRules : Guid * Azure.ResourceManager.SecurityCenter.Models.RulesResultsContent * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.SecurityCenter.SqlVulnerabilityAssessmentBaselineRuleResource>
override this.AddRules : Guid * Azure.ResourceManager.SecurityCenter.Models.RulesResultsContent * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.SecurityCenter.SqlVulnerabilityAssessmentBaselineRuleResource>
Public Overridable Function AddRules (workspaceId As Guid, Optional content As RulesResultsContent = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of SqlVulnerabilityAssessmentBaselineRuleResource)

Parameters

workspaceId
Guid

The workspace Id.

content
RulesResultsContent

The baseline rules.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

A collection of SqlVulnerabilityAssessmentBaselineRuleResource that may take multiple service requests to iterate over.

Applies to