Partager via


SqlServerSqlVulnerabilityAssessmentCollection.CreateOrUpdateAsync 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 System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Sql.SqlServerSqlVulnerabilityAssessmentResource>> CreateOrUpdateAsync (Azure.WaitUntil waitUntil, Azure.ResourceManager.Sql.Models.VulnerabilityAssessmentName vulnerabilityAssessmentName, Azure.ResourceManager.Sql.SqlVulnerabilityAssessmentData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdateAsync : Azure.WaitUntil * Azure.ResourceManager.Sql.Models.VulnerabilityAssessmentName * Azure.ResourceManager.Sql.SqlVulnerabilityAssessmentData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Sql.SqlServerSqlVulnerabilityAssessmentResource>>
override this.CreateOrUpdateAsync : Azure.WaitUntil * Azure.ResourceManager.Sql.Models.VulnerabilityAssessmentName * Azure.ResourceManager.Sql.SqlVulnerabilityAssessmentData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Sql.SqlServerSqlVulnerabilityAssessmentResource>>
Public Overridable Function CreateOrUpdateAsync (waitUntil As WaitUntil, vulnerabilityAssessmentName As VulnerabilityAssessmentName, data As SqlVulnerabilityAssessmentData, Optional cancellationToken As CancellationToken = Nothing) As Task(Of 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 à