Partager via


SqlServerSqlVulnerabilityAssessmentCollection.CreateOrUpdate Méthode

Définition

Crée ou met à jour la stratégie d’évaluation des vulnérabilités SQL.

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

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.

vulnerabilityAssessmentName
VulnerabilityAssessmentName

Nom de l’évaluation des vulnérabilités SQL.

data
SqlVulnerabilityAssessmentData

Ressource demandée.

cancellationToken
CancellationToken

Jeton d’annulation à utiliser.

Retours

Exceptions

data a la valeur null.

S’applique à