vulnerability_assessment_rule_baselines
Creates, updates, deletes, gets or lists a vulnerability_assessment_rule_baselines
resource.
Overview
Name | vulnerability_assessment_rule_baselines |
Type | Resource |
Id | azure.sql.vulnerability_assessment_rule_baselines |
Fields
- vw_vulnerability_assessment_rule_baselines
- vulnerability_assessment_rule_baselines
Name | Datatype | Description |
---|---|---|
baselineName | text | field from the properties object |
resourceGroupName | text | field from the properties object |
results | text | field from the properties object |
ruleId | text | field from the properties object |
serverName | text | field from the properties object |
subscriptionId | text | field from the properties object |
systemDatabaseName | text | field from the properties object |
system_data | text | field from the properties object |
vulnerabilityAssessmentName | text | field from the properties object |
Name | Datatype | Description |
---|---|---|
properties | object | Properties of a database Sql Vulnerability Assessment rule baseline. |
systemData | object | Metadata pertaining to creation and last modification of the resource. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | baselineName, resourceGroupName, ruleId, serverName, subscriptionId, systemDatabaseName, vulnerabilityAssessmentName | Gets a system database's sql vulnerability assessment rule baseline. |
list_by_baseline | SELECT | baselineName, resourceGroupName, serverName, subscriptionId, systemDatabaseName, vulnerabilityAssessmentName | Gets a system database's sql vulnerability assessment rule baseline. |
create_or_update | INSERT | baselineName, resourceGroupName, ruleId, serverName, subscriptionId, systemDatabaseName, vulnerabilityAssessmentName | Creates or updates a database's vulnerability assessment rule baseline. |
delete | DELETE | baselineName, resourceGroupName, ruleId, serverName, subscriptionId, systemDatabaseName, vulnerabilityAssessmentName | Removes the database's vulnerability assessment rule baseline. |
SELECT
examples
Gets a system database's sql vulnerability assessment rule baseline.
- vw_vulnerability_assessment_rule_baselines
- vulnerability_assessment_rule_baselines
SELECT
baselineName,
resourceGroupName,
results,
ruleId,
serverName,
subscriptionId,
systemDatabaseName,
system_data,
vulnerabilityAssessmentName
FROM azure.sql.vw_vulnerability_assessment_rule_baselines
WHERE baselineName = '{{ baselineName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND serverName = '{{ serverName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND systemDatabaseName = '{{ systemDatabaseName }}'
AND vulnerabilityAssessmentName = '{{ vulnerabilityAssessmentName }}';
SELECT
properties,
systemData
FROM azure.sql.vulnerability_assessment_rule_baselines
WHERE baselineName = '{{ baselineName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND serverName = '{{ serverName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND systemDatabaseName = '{{ systemDatabaseName }}'
AND vulnerabilityAssessmentName = '{{ vulnerabilityAssessmentName }}';
INSERT
example
Use the following StackQL query and manifest file to create a new vulnerability_assessment_rule_baselines
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure.sql.vulnerability_assessment_rule_baselines (
baselineName,
resourceGroupName,
ruleId,
serverName,
subscriptionId,
systemDatabaseName,
vulnerabilityAssessmentName,
properties
)
SELECT
'{{ baselineName }}',
'{{ resourceGroupName }}',
'{{ ruleId }}',
'{{ serverName }}',
'{{ subscriptionId }}',
'{{ systemDatabaseName }}',
'{{ vulnerabilityAssessmentName }}',
'{{ properties }}'
;
- name: your_resource_model_name
props:
- name: systemData
value:
- name: createdBy
value: string
- name: createdByType
value: string
- name: createdAt
value: string
- name: lastModifiedBy
value: string
- name: lastModifiedByType
value: string
- name: lastModifiedAt
value: string
- name: properties
value:
- name: latestScan
value: boolean
- name: results
value:
- array
DELETE
example
Deletes the specified vulnerability_assessment_rule_baselines
resource.
/*+ delete */
DELETE FROM azure.sql.vulnerability_assessment_rule_baselines
WHERE baselineName = '{{ baselineName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND ruleId = '{{ ruleId }}'
AND serverName = '{{ serverName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND systemDatabaseName = '{{ systemDatabaseName }}'
AND vulnerabilityAssessmentName = '{{ vulnerabilityAssessmentName }}';