database_sql_vulnerability_assessment_baselines
Creates, updates, deletes, gets or lists a database_sql_vulnerability_assessment_baselines
resource.
Overview
Name | database_sql_vulnerability_assessment_baselines |
Type | Resource |
Id | azure.sql.database_sql_vulnerability_assessment_baselines |
Fields
- vw_database_sql_vulnerability_assessment_baselines
- database_sql_vulnerability_assessment_baselines
Name | Datatype | Description |
---|---|---|
baselineName | text | field from the properties object |
databaseName | text | field from the properties object |
resourceGroupName | text | field from the properties object |
results | text | field from the properties object |
serverName | text | field from the properties object |
subscriptionId | 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 baseline set. |
systemData | object | Metadata pertaining to creation and last modification of the resource. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | baselineName, databaseName, resourceGroupName, serverName, subscriptionId, vulnerabilityAssessmentName | Gets a list of database's sql vulnerability assessment rule baselines. |
list_by_sql_vulnerability_assessment | SELECT | databaseName, resourceGroupName, serverName, subscriptionId, vulnerabilityAssessmentName | Gets a list of database's sql vulnerability assessment rule baselines. |
create_or_update | INSERT | baselineName, databaseName, resourceGroupName, serverName, subscriptionId, vulnerabilityAssessmentName | Add a database's vulnerability assessment rule baseline list. |
SELECT
examples
Gets a list of database's sql vulnerability assessment rule baselines.
- vw_database_sql_vulnerability_assessment_baselines
- database_sql_vulnerability_assessment_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 }}';
SELECT
properties,
systemData
FROM azure.sql.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.
- All Properties
- Manifest
/*+ 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 }}'
;
- 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: object