Beispiel #1
0
        /// <summary>
        /// Get a the Vulnerability Assessment scan record
        /// </summary>
        public VulnerabilityAssessmentScanRecordModel GetVulnerabilityAssessmentScanRecord(string resourceGroup, string serverName, string databaseName, string scanId, ApplyToType applyToType)
        {
            VulnerabilityAssessmentScanRecordModel model = (applyToType == ApplyToType.Database)
                ? ConvertVulnerabilityAssessmentScanRecord(resourceGroup,
                                                           VulnerabilityAssessmentCommunicator.GetDatabaseVulnerabilityAssessmentScanRecord(resourceGroup, serverName, databaseName, scanId))
                : ConvertVulnerabilityAssessmentScanRecord(resourceGroup,
                                                           VulnerabilityAssessmentCommunicator.GetManagedDatabaseVulnerabilityAssessmentScanRecord(resourceGroup, serverName, databaseName, scanId));

            return(model);
        }