예제 #1
0
        /// <summary>
        /// Convert a the Vulnerability Assessment scan
        /// </summary>
        public VulnerabilityAssessmentScanExportModel ConvertVulnerabilityAssessmentScan(string resourceGroup, string serverName, string databaseName, string scanId, ApplyToType applyToType)
        {
            var vulnerabilityAssessmentExportResponse = (applyToType == ApplyToType.Database)
                ? VulnerabilityAssessmentCommunicator.ConvertDatabaseVulnerabilityAssessmentScan(resourceGroup, serverName, databaseName, scanId)
                : VulnerabilityAssessmentCommunicator.ConvertManagedDatabaseVulnerabilityAssessmentScan(resourceGroup, serverName, databaseName, scanId);

            return(new VulnerabilityAssessmentScanExportModel()
            {
                ResourceGroupName = resourceGroup,
                ExportedReportLocation = vulnerabilityAssessmentExportResponse.ExportedReportLocation,
                ScanId = scanId
            });
        }