Partager via


SqlDatabaseSqlVulnerabilityAssessmentBaselineCollection.CreateOrUpdate Méthode

Définition

Ajouter la liste de référence des règles d’évaluation des vulnérabilités d’une base de données.

  • Chemin/abonnements de la demande/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/sqlVulnerabilityAssessmentsments/{vulnerabilityAssessmentName}/baselines/{baselineName}
  • IdDatabaseSqlVulnerabilityAssessmentBaselines_CreateOrUpdate d’opération
public virtual Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Sql.SqlDatabaseSqlVulnerabilityAssessmentBaselineResource> CreateOrUpdate (Azure.WaitUntil waitUntil, Azure.ResourceManager.Sql.Models.SqlVulnerabilityAssessmentBaselineName baselineName, Azure.ResourceManager.Sql.Models.SqlVulnerabilityAssessmentBaselineCreateOrUpdateContent content, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdate : Azure.WaitUntil * Azure.ResourceManager.Sql.Models.SqlVulnerabilityAssessmentBaselineName * Azure.ResourceManager.Sql.Models.SqlVulnerabilityAssessmentBaselineCreateOrUpdateContent * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Sql.SqlDatabaseSqlVulnerabilityAssessmentBaselineResource>
override this.CreateOrUpdate : Azure.WaitUntil * Azure.ResourceManager.Sql.Models.SqlVulnerabilityAssessmentBaselineName * Azure.ResourceManager.Sql.Models.SqlVulnerabilityAssessmentBaselineCreateOrUpdateContent * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Sql.SqlDatabaseSqlVulnerabilityAssessmentBaselineResource>
Public Overridable Function CreateOrUpdate (waitUntil As WaitUntil, baselineName As SqlVulnerabilityAssessmentBaselineName, content As SqlVulnerabilityAssessmentBaselineCreateOrUpdateContent, Optional cancellationToken As CancellationToken = Nothing) As ArmOperation(Of SqlDatabaseSqlVulnerabilityAssessmentBaselineResource)

Paramètres

waitUntil
WaitUntil

Completed si la méthode doit attendre la fin de l’opération de longue durée sur le service ; Started s’il doit retourner après le démarrage de l’opération. Pour plus d’informations sur les opérations de longue durée, consultez Exemples d’opérations Azure.Core Long-Running.

baselineName
SqlVulnerabilityAssessmentBaselineName

SqlVulnerabilityAssessmentBaselineName à utiliser.

content
SqlVulnerabilityAssessmentBaselineCreateOrUpdateContent

Ressource de base de référence de règle demandée.

cancellationToken
CancellationToken

Jeton d’annulation à utiliser.

Retours

Exceptions

content a la valeur null.

S’applique à