ISecurityAlertPolicyOperations.CreateOrUpdateServerSecurityAlertPolicyAsync Method

Definition

Creates or updates an Azure SQL Server security alert policy.

public System.Threading.Tasks.Task<Microsoft.Azure.Management.Sql.LegacySdk.Models.ServerSecurityAlertPolicyCreateOrUpdateResponse> CreateOrUpdateServerSecurityAlertPolicyAsync (string resourceGroupName, string serverName, Microsoft.Azure.Management.Sql.LegacySdk.Models.ServerSecurityAlertPolicyCreateOrUpdateParameters parameters, System.Threading.CancellationToken cancellationToken);
abstract member CreateOrUpdateServerSecurityAlertPolicyAsync : string * string * Microsoft.Azure.Management.Sql.LegacySdk.Models.ServerSecurityAlertPolicyCreateOrUpdateParameters * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.Sql.LegacySdk.Models.ServerSecurityAlertPolicyCreateOrUpdateResponse>
Public Function CreateOrUpdateServerSecurityAlertPolicyAsync (resourceGroupName As String, serverName As String, parameters As ServerSecurityAlertPolicyCreateOrUpdateParameters, cancellationToken As CancellationToken) As Task(Of ServerSecurityAlertPolicyCreateOrUpdateResponse)

Parameters

resourceGroupName
String

The name of the Resource Group to which the server belongs.

serverName
String

The name of the Azure SQL Database Server on which the database is hosted.

parameters
ServerSecurityAlertPolicyCreateOrUpdateParameters

The required parameters for creating or updating a Azure SQL Database security alert policy.

cancellationToken
CancellationToken

Cancellation token.

Returns

Response to Azure Sql Server security alert policy create or update operation.

Applies to