AuditingPolicyOperationsExtensions.CreateOrUpdateServerPolicyAsync Method

Definition

Creates or updates an Azure SQL Database Server auditing policy.

public static System.Threading.Tasks.Task<Microsoft.Azure.AzureOperationResponse> CreateOrUpdateServerPolicyAsync (this Microsoft.Azure.Management.Sql.LegacySdk.IAuditingPolicyOperations operations, string resourceGroupName, string serverName, Microsoft.Azure.Management.Sql.LegacySdk.Models.ServerAuditingPolicyCreateOrUpdateParameters parameters);
static member CreateOrUpdateServerPolicyAsync : Microsoft.Azure.Management.Sql.LegacySdk.IAuditingPolicyOperations * string * string * Microsoft.Azure.Management.Sql.LegacySdk.Models.ServerAuditingPolicyCreateOrUpdateParameters -> System.Threading.Tasks.Task<Microsoft.Azure.AzureOperationResponse>
<Extension()>
Public Function CreateOrUpdateServerPolicyAsync (operations As IAuditingPolicyOperations, resourceGroupName As String, serverName As String, parameters As ServerAuditingPolicyCreateOrUpdateParameters) As Task(Of AzureOperationResponse)

Parameters

operations
IAuditingPolicyOperations

Reference to the Microsoft.Azure.Management.Sql.LegacySdk.IAuditingPolicyOperations.

resourceGroupName
String

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

serverName
String

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

parameters
ServerAuditingPolicyCreateOrUpdateParameters

Required. The required parameters for createing or updating a Azure SQL Database Server auditing policy.

Returns

Task<Microsoft.Azure.AzureOperationResponse>

A standard service response including an HTTP status code and request ID.

Applies to