Partilhar via


SqlVulnerabilityAssessmentBaselineRuleCollection.AddRulesAsync Método

Definição

Adicione uma lista de regras de linha de base. Substituirá todos os resultados existentes anteriormente (para todas as regras).

  • Caminho da Solicitação/{resourceId}/providers/Microsoft.Security/sqlVulnerabilityAssessments/default/baselineRules
  • IdSqlVulnerabilityAssessmentBaselineRules_Add de operação
public virtual Azure.AsyncPageable<Azure.ResourceManager.SecurityCenter.SqlVulnerabilityAssessmentBaselineRuleResource> AddRulesAsync (Guid workspaceId, Azure.ResourceManager.SecurityCenter.Models.RulesResultsContent content = default, System.Threading.CancellationToken cancellationToken = default);
abstract member AddRulesAsync : Guid * Azure.ResourceManager.SecurityCenter.Models.RulesResultsContent * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.SecurityCenter.SqlVulnerabilityAssessmentBaselineRuleResource>
override this.AddRulesAsync : Guid * Azure.ResourceManager.SecurityCenter.Models.RulesResultsContent * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.SecurityCenter.SqlVulnerabilityAssessmentBaselineRuleResource>
Public Overridable Function AddRulesAsync (workspaceId As Guid, Optional content As RulesResultsContent = Nothing, Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of SqlVulnerabilityAssessmentBaselineRuleResource)

Parâmetros

workspaceId
Guid

A ID do workspace.

content
RulesResultsContent

As regras de linha de base.

cancellationToken
CancellationToken

O token de cancelamento a ser usado.

Retornos

Uma coleção assíncrona de SqlVulnerabilityAssessmentBaselineRuleResource que pode levar várias solicitações de serviço para iterar.

Aplica-se a