Share via


AuditingPolicyOperationsExtensions.CreateOrUpdateServerPolicy Method

Definition

Creates or updates an Azure SQL Database Server auditing policy.

public static Microsoft.Azure.AzureOperationResponse CreateOrUpdateServerPolicy (this Microsoft.Azure.Management.Sql.LegacySdk.IAuditingPolicyOperations operations, string resourceGroupName, string serverName, Microsoft.Azure.Management.Sql.LegacySdk.Models.ServerAuditingPolicyCreateOrUpdateParameters parameters);
static member CreateOrUpdateServerPolicy : Microsoft.Azure.Management.Sql.LegacySdk.IAuditingPolicyOperations * string * string * Microsoft.Azure.Management.Sql.LegacySdk.Models.ServerAuditingPolicyCreateOrUpdateParameters -> Microsoft.Azure.AzureOperationResponse
<Extension()>
Public Function CreateOrUpdateServerPolicy (operations As IAuditingPolicyOperations, resourceGroupName As String, serverName As String, parameters As ServerAuditingPolicyCreateOrUpdateParameters) As 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

Microsoft.Azure.AzureOperationResponse

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

Applies to