Partilhar via


ServerSecurityAlertPoliciesOperationsExtensions.CreateOrUpdateAsync Método

Definição

Cria ou atualiza uma política de detecção de ameaças.

public static System.Threading.Tasks.Task<Microsoft.Azure.Management.Sql.Fluent.Models.ServerSecurityAlertPolicyInner> CreateOrUpdateAsync (this Microsoft.Azure.Management.Sql.Fluent.IServerSecurityAlertPoliciesOperations operations, string resourceGroupName, string serverName, Microsoft.Azure.Management.Sql.Fluent.Models.ServerSecurityAlertPolicyInner parameters, System.Threading.CancellationToken cancellationToken = default);
static member CreateOrUpdateAsync : Microsoft.Azure.Management.Sql.Fluent.IServerSecurityAlertPoliciesOperations * string * string * Microsoft.Azure.Management.Sql.Fluent.Models.ServerSecurityAlertPolicyInner * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.Sql.Fluent.Models.ServerSecurityAlertPolicyInner>
<Extension()>
Public Function CreateOrUpdateAsync (operations As IServerSecurityAlertPoliciesOperations, resourceGroupName As String, serverName As String, parameters As ServerSecurityAlertPolicyInner, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ServerSecurityAlertPolicyInner)

Parâmetros

operations
IServerSecurityAlertPoliciesOperations

O grupo de operações para esse método de extensão.

resourceGroupName
String

O nome do grupo de recursos que contém o recurso. Você pode obter esse valor por meio da API do Gerenciador de Recursos do Azure ou por meio do portal.

serverName
String

O nome do servidor.

parameters
ServerSecurityAlertPolicyInner

A política de alerta de segurança do servidor.

cancellationToken
CancellationToken

O token de cancelamento.

Retornos

Aplica-se a