コード例 #1
0
        /// <summary>
        /// Gets the database security alert policy for the given database in the given database server in the given resource group
        /// </summary>
        public Management.Sql.LegacySdk.Models.DatabaseSecurityAlertPolicy GetDatabaseSecurityAlertPolicy(string resourceGroupName, string serverName, string databaseName)
        {
            ISecurityAlertPolicyOperations         operations = GetLegacySqlClient().SecurityAlertPolicy;
            DatabaseSecurityAlertPolicyGetResponse response   = operations.GetDatabaseSecurityAlertPolicy(resourceGroupName, serverName, databaseName);

            return(response.SecurityAlertPolicy);
        }
コード例 #2
0
        /// <summary>
        /// Gets the database security alert policy for the given database in the given database server in the given resource group
        /// </summary>
        public DatabaseSecurityAlertPolicy GetDatabaseSecurityAlertPolicy(string resourceGroupName, string serverName, string databaseName, string clientRequestId)
        {
            ISecurityAlertPolicyOperations         operations = GetCurrentSqlClient(clientRequestId).SecurityAlertPolicy;
            DatabaseSecurityAlertPolicyGetResponse response   = operations.GetDatabaseSecurityAlertPolicy(resourceGroupName, serverName, databaseName);

            return(response.SecurityAlertPolicy);
        }