Skip to main content

database_sql_vulnerability_assessment_scans

Creates, updates, deletes, gets or lists a database_sql_vulnerability_assessment_scans resource.

Overview

Namedatabase_sql_vulnerability_assessment_scans
TypeResource
Idazure.sql.database_sql_vulnerability_assessment_scans

Fields

NameDatatypeDescription
databasetextfield from the properties object
databaseNametextfield from the properties object
end_timetextfield from the properties object
errorstextfield from the properties object
high_severity_failed_rules_counttextfield from the properties object
is_baseline_appliedtextfield from the properties object
last_scan_timetextfield from the properties object
low_severity_failed_rules_counttextfield from the properties object
medium_severity_failed_rules_counttextfield from the properties object
resourceGroupNametextfield from the properties object
scanIdtextfield from the properties object
scan_idtextfield from the properties object
servertextfield from the properties object
serverNametextfield from the properties object
sql_versiontextfield from the properties object
start_timetextfield from the properties object
statetextfield from the properties object
subscriptionIdtextfield from the properties object
system_datatextfield from the properties object
total_failed_rules_counttextfield from the properties object
total_passed_rules_counttextfield from the properties object
total_rules_counttextfield from the properties object
trigger_typetextfield from the properties object
vulnerabilityAssessmentNametextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTdatabaseName, resourceGroupName, scanId, serverName, subscriptionId, vulnerabilityAssessmentNameGet a database vulnerability assessment scan result.
list_by_sql_vulnerability_assessmentsSELECTdatabaseName, resourceGroupName, serverName, subscriptionId, vulnerabilityAssessmentNameLists the vulnerability assessment scans of a database.

SELECT examples

Lists the vulnerability assessment scans of a database.

SELECT
database,
databaseName,
end_time,
errors,
high_severity_failed_rules_count,
is_baseline_applied,
last_scan_time,
low_severity_failed_rules_count,
medium_severity_failed_rules_count,
resourceGroupName,
scanId,
scan_id,
server,
serverName,
sql_version,
start_time,
state,
subscriptionId,
system_data,
total_failed_rules_count,
total_passed_rules_count,
total_rules_count,
trigger_type,
vulnerabilityAssessmentName
FROM azure.sql.vw_database_sql_vulnerability_assessment_scans
WHERE databaseName = '{{ databaseName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND serverName = '{{ serverName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND vulnerabilityAssessmentName = '{{ vulnerabilityAssessmentName }}';