Skip to main content

database_sql_vulnerability_assessment_baselines

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

Overview

Namedatabase_sql_vulnerability_assessment_baselines
TypeResource
Idazure.sql.database_sql_vulnerability_assessment_baselines

Fields

NameDatatypeDescription
baselineNametextfield from the properties object
databaseNametextfield from the properties object
resourceGroupNametextfield from the properties object
resultstextfield from the properties object
serverNametextfield from the properties object
subscriptionIdtextfield from the properties object
system_datatextfield from the properties object
vulnerabilityAssessmentNametextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTbaselineName, databaseName, resourceGroupName, serverName, subscriptionId, vulnerabilityAssessmentNameGets a list of database's sql vulnerability assessment rule baselines.
list_by_sql_vulnerability_assessmentSELECTdatabaseName, resourceGroupName, serverName, subscriptionId, vulnerabilityAssessmentNameGets a list of database's sql vulnerability assessment rule baselines.
create_or_updateINSERTbaselineName, databaseName, resourceGroupName, serverName, subscriptionId, vulnerabilityAssessmentNameAdd a database's vulnerability assessment rule baseline list.

SELECT examples

Gets a list of database's sql vulnerability assessment rule baselines.

SELECT
baselineName,
databaseName,
resourceGroupName,
results,
serverName,
subscriptionId,
system_data,
vulnerabilityAssessmentName
FROM azure.sql.vw_database_sql_vulnerability_assessment_baselines
WHERE databaseName = '{{ databaseName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND serverName = '{{ serverName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND vulnerabilityAssessmentName = '{{ vulnerabilityAssessmentName }}';

INSERT example

Use the following StackQL query and manifest file to create a new database_sql_vulnerability_assessment_baselines resource.

/*+ create */
INSERT INTO azure.sql.database_sql_vulnerability_assessment_baselines (
baselineName,
databaseName,
resourceGroupName,
serverName,
subscriptionId,
vulnerabilityAssessmentName,
properties
)
SELECT
'{{ baselineName }}',
'{{ databaseName }}',
'{{ resourceGroupName }}',
'{{ serverName }}',
'{{ subscriptionId }}',
'{{ vulnerabilityAssessmentName }}',
'{{ properties }}'
;