Esempio n. 1
0
 /// <summary>
 /// List the Vulnerability Assessment scan records
 /// </summary>
 public List <VulnerabilityAssessmentScanRecordModel> ListVulnerabilityAssessmentScanRecords(string resourceGroup, string serverName,
                                                                                             string databaseName, ApplyToType applyToType)
 {
     return((applyToType == ApplyToType.Database)
         ? VulnerabilityAssessmentCommunicator.ListDatabaseVulnerabilityAssessmentScanRecords(resourceGroup, serverName, databaseName)
            .Select(scanRecord => ConvertVulnerabilityAssessmentScanRecord(resourceGroup, scanRecord)).ToList()
         : VulnerabilityAssessmentCommunicator.ListManagedDatabaseVulnerabilityAssessmentScanRecords(resourceGroup, serverName, databaseName)
            .Select(scanRecord => ConvertVulnerabilityAssessmentScanRecord(resourceGroup, scanRecord)).ToList());
 }
Esempio n. 2
0
 /// <summary>
 /// List the Vulnerability Assessment scan records
 /// </summary>
 public List <DatabaseVulnerabilityAssessmentScanRecordModel> ListDatabaseVulnerabilityAssessmentScanRecords(string resourceGroup, string serverName,
                                                                                                             string databaseName)
 {
     return(VulnerabilityAssessmentCommunicator.ListDatabaseVulnerabilityAssessmentScanRecords(resourceGroup, serverName, databaseName)
            .Select(scanRecord => ConvertDatabaseVulnerabilityAssessmentScanRecord(resourceGroup, serverName, databaseName, scanRecord)).ToList());
 }