Skip to main content

sql_vulnerability_assessment_baseline_rules

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

Overview

Namesql_vulnerability_assessment_baseline_rules
TypeResource
Idazure.security.sql_vulnerability_assessment_baseline_rules

Fields

NameDatatypeDescription
idtextResource Id
nametextResource name
resourceIdtextfield from the properties object
resultstextfield from the properties object
ruleIdtextfield from the properties object
typetextResource type
workspaceIdtextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTresourceId, ruleId, workspaceId
listSELECTresourceId, workspaceId
create_or_updateINSERTresourceId, ruleId, workspaceId
deleteDELETEresourceId, ruleId, workspaceId
addEXECresourceId, workspaceId

SELECT examples

SELECT
id,
name,
resourceId,
results,
ruleId,
type,
workspaceId
FROM azure.security.vw_sql_vulnerability_assessment_baseline_rules
WHERE resourceId = '{{ resourceId }}'
AND workspaceId = '{{ workspaceId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.security.sql_vulnerability_assessment_baseline_rules (
resourceId,
ruleId,
workspaceId,
latestScan,
results
)
SELECT
'{{ resourceId }}',
'{{ ruleId }}',
'{{ workspaceId }}',
{{ latestScan }},
'{{ results }}'
;

DELETE example

Deletes the specified sql_vulnerability_assessment_baseline_rules resource.

/*+ delete */
DELETE FROM azure.security.sql_vulnerability_assessment_baseline_rules
WHERE resourceId = '{{ resourceId }}'
AND ruleId = '{{ ruleId }}'
AND workspaceId = '{{ workspaceId }}';